Nice! Please also give it a try :)<br><br>@Gary, Gonzalo, ping ;) both patches are here: <a href="http://www.sugarlabs.org/~tch/patches/examples/">http://www.sugarlabs.org/~tch/patches/examples/</a><br><br><div class="gmail_quote">
On Wed, Aug 22, 2012 at 10:24 AM, Bert Freudenberg <span dir="ltr"><<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On <a href="tel:2012-08-22" value="+59820120822">2012-08-22</a>, at 04:27, Martin Abente wrote:<br>
<br>
> Hello everyone:<br>
><br>
> 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.<br>
><br>
> To avoid spaming (for some time) the sugar-devel ML I will post the patches just here:<br>
><br>
> sugar: <a href="http://www.sugarlabs.org/%7Etch/patches/examples/sugar/0001-Examples-objects-support-V2.patch" target="_blank">http://www.sugarlabs.org/~tch/patches/examples/sugar/0001-Examples-objects-support-V2.patch</a><br>
> sugar-toolkit: <a href="http://www.sugarlabs.org/%7Etch/patches/examples/sugar-toolkit/0001-Examples_path-activity-info.patch" target="_blank">http://www.sugarlabs.org/~tch/patches/examples/sugar-toolkit/0001-Examples_path-activity-info.patch</a><br>
><br>
> Feedback is welcome!<br>
> tch<br>
<br>
</div>I have not tried it, but by eyeballing the code looks fine :)<br>
<span class="HOEnZb"><font color="#888888"><br>
- Bert -<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
> On Tue, Aug 21, 2012 at 3:42 PM, Martin Abente <<a href="mailto:martin.abente.lahaye@gmail.com">martin.abente.lahaye@gmail.com</a>> wrote:<br>
> I don't see why not, we can achieve both things :). Maybe someone have another opinion regarding this?<br>
><br>
><br>
> On Tue, Aug 21, 2012 at 3:07 PM, Bert Freudenberg <<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>> wrote:<br>
> On <a href="tel:2012-08-21" value="+59820120821">2012-08-21</a>, at 20:17, Martin Abente wrote:<br>
><br>
> > The design I implemented works like this:<br>
> ><br>
> > a. activity developers or deployments add a new "examples" folder inside the activity bundle with their examples objects.<br>
> > b. when the activity starts, the example folder will be accessible through the journal as new volume option, and also from __any__ ObjectChooser.<br>
> > c. Only one volume button will be shown, even when many instances of the activity are running.<br>
> > d. The example folder will disappear from the journal when the last instance is closed.<br>
> > [...]<br>
> > Waiting for more feedback... :)<br>
><br>
> And in another thread:<br>
><br>
> >> instead of a magic directory name, couldn't the <a href="http://activity.info" target="_blank">activity.info</a> file have a new entry giving the examples path?<br>
> ><br>
><br>
> > 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.<br>
><br>
><br>
> Okay, so by default it should look for a directory named "examples". But maybe a different path could be set in <a href="http://activity.info" target="_blank">activity.info</a>?<br>
><br>
> - Bert -<br>
><br>
><br>
> _______________________________________________<br>
> Sugar-devel mailing list<br>
> <a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
> <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
><br>
><br>
<br>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</div></div></blockquote></div><br>