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/~tch/patches/examples/sugar/0001-Examples-objects-support-V2.patch">http://www.sugarlabs.org/~tch/patches/examples/sugar/0001-Examples-objects-support-V2.patch</a><br>sugar-toolkit: <a href="http://www.sugarlabs.org/~tch/patches/examples/sugar-toolkit/0001-Examples_path-activity-info.patch">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 class="gmail_quote">On Tue, Aug 21, 2012 at 3:42 PM, Martin Abente <span dir="ltr"><<a href="mailto:martin.abente.lahaye@gmail.com" target="_blank">martin.abente.lahaye@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I don't see why not, we can achieve both things :). Maybe someone have another opinion regarding this?<div class="HOEnZb">
<div class="h5"><br><br><div class="gmail_quote">On Tue, Aug 21, 2012 at 3:07 PM, 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>On <a href="tel:2012-08-21" value="+59820120821" target="_blank">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>
</div>> [...]<br>
<div>> Waiting for more feedback... :)<br>
<br>
</div>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>
<span><font color="#888888"><br>
- Bert -<br>
</font></span><div><div><br>
<br>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">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>
</div></div></blockquote></div><br>