Nice! Please also give it a try :) @Gary, Gonzalo, ping ;) both patches are here: http://www.sugarlabs.org/~tch/patches/examples/
On Wed, Aug 22, 2012 at 10:24 AM, Bert Freudenberg <b...@freudenbergs.de>wrote: > On 2012-08-22, at 04:27, Martin Abente wrote: > > > Hello everyone: > > > > From the meeting notes and Bert suggestion I have what could be called > the version 2 of this feature, greatly simplified and complies with > everyones rightful suggestions. > > > > To avoid spaming (for some time) the sugar-devel ML I will post the > patches just here: > > > > sugar: > http://www.sugarlabs.org/~tch/patches/examples/sugar/0001-Examples-objects-support-V2.patch > > sugar-toolkit: > http://www.sugarlabs.org/~tch/patches/examples/sugar-toolkit/0001-Examples_path-activity-info.patch > > > > Feedback is welcome! > > tch > > I have not tried it, but by eyeballing the code looks fine :) > > - Bert - > > > > On Tue, Aug 21, 2012 at 3:42 PM, Martin Abente < > martin.abente.lah...@gmail.com> wrote: > > I don't see why not, we can achieve both things :). Maybe someone have > another opinion regarding this? > > > > > > On Tue, Aug 21, 2012 at 3:07 PM, Bert Freudenberg <b...@freudenbergs.de> > wrote: > > On 2012-08-21, at 20:17, Martin Abente wrote: > > > > > The design I implemented works like this: > > > > > > a. activity developers or deployments add a new "examples" folder > inside the activity bundle with their examples objects. > > > b. when the activity starts, the example folder will be accessible > through the journal as new volume option, and also from __any__ > ObjectChooser. > > > c. Only one volume button will be shown, even when many instances of > the activity are running. > > > d. The example folder will disappear from the journal when the last > instance is closed. > > > [...] > > > Waiting for more feedback... :) > > > > And in another thread: > > > > >> instead of a magic directory name, couldn't the activity.info file > have a new entry giving the examples path? > > > > > > > > What I tried, or I am trying, to do is to make this feature available > as easy as we can, so even deployments could add their own examples with > very little technical knowledge requirements. That why I try this > convention (magical) idea. > > > > > > Okay, so by default it should look for a directory named "examples". But > maybe a different path could be set in activity.info? > > > > - Bert - > > > > > > _______________________________________________ > > Sugar-devel mailing list > > Sugar-devel@lists.sugarlabs.org > > http://lists.sugarlabs.org/listinfo/sugar-devel > > > > > > _______________________________________________ > Sugar-devel mailing list > Sugar-devel@lists.sugarlabs.org > http://lists.sugarlabs.org/listinfo/sugar-devel >
_______________________________________________ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel