[Sugar-devel] [PATCH] add view source for sugar libraries

Walter Bender walter.bender at gmail.com
Fri May 27 15:49:11 EDT 2011


The attached patch is an extension to a previous patch (although it may be
able to be applied independently) which enabled copying of source code from
the View Source palette. This patch adds view source for the Sugar packages
in .../site-packages/jarabe and .../site-packages/sugar (it picks the first
instance of site-packages from sys.path).

As was the previous patch, this is for soliciting comments and feedback.

I trigger Sugar View Source from the Journal entry in the Frame. I am open
to other ideas as to where to put this. (Perhaps we always include it as
part of the activity View Source in a separate radio button?)

Currently, I am not showing the contents of /usr/share/sugar but probably
should at least show the extensions and data directories.

I haven't added the copy function yet as I want to think it through a bit
more.

FWIW, this patch also contains a fix to #2854.

-walter

-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110527/697699bc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-adding-view-source-for-sugar.patch
Type: application/octet-stream
Size: 8853 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110527/697699bc/attachment.obj>


More information about the Sugar-devel mailing list