<div dir="ltr">I like this <a href="https://git.sugarlabs.org/~aguzubiaga/hello-world/simpleactivity-helloworld/blobs/master/activity.py">https://git.sugarlabs.org/~aguzubiaga/hello-world/simpleactivity-helloworld/blobs/master/activity.py</a><div>
<br></div><div>Gonzalo</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 22, 2013 at 1:47 PM, Agustin Zubiaga Sanchez <span dir="ltr"><<a href="mailto:aguz@sugarlabs.org" target="_blank">aguz@sugarlabs.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks everyone and UPDATE:<br>
<br>
The classes are now in separated files for don't import all the sharing<br>
stuff if it is not necessary (simpleactivity.py - sharedactivity.py):<br>
If you want to implement collaboration you will have to put both files<br>
(because SharedActivity depends of SimpleActivity) in your activity, if<br>
not, you just have to include simpleactivity.py<br>
This change was proposed by Gonzalo.<br>
And now I am using the mainline repository is [1] just for these two files.<br>
<br>
The demo I tell you in my first email is now in the "sharing-demo"<br>
repository [2], and there is one more repository which is called "demo"<br>
where I will (not yet) put the demo without collaboration as requested by<br>
James.<br>
<br>
And also I cloned HelloWorld [3], and I make it use SimpleActivity, and was<br>
done in 14 lines (of code) plus license and other commented lines.<br>
<br>
[1] <a href="https://git.sugarlabs.org/simpleactivity/mainline" target="_blank">https://git.sugarlabs.org/simpleactivity/mainline</a><br>
[2] <a href="https://git.sugarlabs.org/simpleactivity/sharing-demo" target="_blank">https://git.sugarlabs.org/simpleactivity/sharing-demo</a><br>
[3]<br>
<a href="https://git.sugarlabs.org/~aguzubiaga/hello-world/simpleactivity-helloworld" target="_blank">https://git.sugarlabs.org/~aguzubiaga/hello-world/simpleactivity-helloworld</a><br>
<br>
Thank you for your review,<br>
aguz<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
2013/11/22 Agustin Zubiaga Sanchez <<a href="mailto:aguz@sugarlabs.org">aguz@sugarlabs.org</a>><br>
<br>
> Muchas gracias por todo Eduardo, voy a ver si me doy una vuelta algun dia,<br>
> yo les aviso :)<br>
><br>
> Saludos,<br>
> aguz<br>
><br>
><br>
> 2013/11/22 eduardo duarte <<a href="mailto:duarteeduardo021@gmail.com">duarteeduardo021@gmail.com</a>><br>
><br>
>> Felicitaciones Agustín !! desde Centro RAP y Espacio Ceibal Toledo -<br>
>> Canelones - Uruguay . Y nuestro impulso para que sigas adelante con todos<br>
>> tus proyectos que nos muestran en el mundo con toda tu capacidad innovadora<br>
>> con la tecnología de la herramienta Ceibal.-<br>
>> Estamos a las órdenes en nuestro Centro por si tenés tiempo uno de estos<br>
>> días y querés darte una vuelta, si llega a ser posible en el tiempo que sea<br>
>> organizamos (con previo aviso y tiempo) para que des tus charlas a todos<br>
>> nosotros e nuestras atenciones del Centro RAP y Espacio Ceibal de los<br>
>> miércoles en estas vaciones !<br>
>><br>
>> No te sientas comprometido, es solamente una invitación cordial para<br>
>> cuando te sobre un poquito de tiempo, y desde ya muchísimas gracias por tus<br>
>> aportes !<br>
>><br>
>> Nosotros estamos en la Biblioteca "Mario Benedetti" del Municipio de<br>
>> Toledo en la ciudad de Toledo - Canelones , ruta 6 , por cualquier<br>
>> contacto: <a href="mailto:duarteeduardo021@gmail.com">duarteeduardo021@gmail.com</a> y mi cel: 099139186 soy el<br>
>> responsable en territorio del Centro RAP y Espacio Ceibal Toledo, e<br>
>> integrante de RAP-Ceibal Uruguay.-<br>
>><br>
>> Un abrazo.<br>
>> Eduardo Duarte - Centro RAP y Espacio Ceibal Toledo.<br>
>> <a href="mailto:duarteeduardo021@gmail.com">duarteeduardo021@gmail.com</a><br>
>> <a href="mailto:centroraptoledo@gmail.com">centroraptoledo@gmail.com</a><br>
>><br>
>><br>
>> 2013/11/22 Gonzalo Odiard <<a href="mailto:gonzalo@laptop.org">gonzalo@laptop.org</a>><br>
>><br>
>>> Separated files to SimpleActivity and SharedActivity would be good,<br>
>>> to avoid importing all the telepathy and network stuff if will not be<br>
>>> used.<br>
>>><br>
>>> I would like to see a HelloWorld example, the extreme minimal needed to<br>
>>> create a activity.<br>
>>><br>
>>> Gonzalo<br>
>>><br>
>>><br>
>>> On Fri, Nov 22, 2013 at 10:18 AM, Agustin Zubiaga Sanchez <<br>
>>> <a href="mailto:aguz@sugarlabs.org">aguz@sugarlabs.org</a>> wrote:<br>
>>><br>
>>>> Thank you!<br>
>>>><br>
>>>> James:<br>
>>>> I take your point... I am going to make separated branches one for<br>
>>>> collaboration and another for just a SimpleActivity Activity.<br>
>>>> I will try to do that today, anyway I will notify.<br>
>>>><br>
>>>> Regards,<br>
>>>> aguz<br>
>>>><br>
>>>><br>
>>>><br>
>>>> 2013/11/22 James Cameron <<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>><br>
>>>><br>
>>>> > +1<br>
>>>> ><br>
>>>> > I have reviewed simpleactivity.py and testactivity.py<br>
>>>> ><br>
>>>> > This code is very legible and explains well what it does, and can<br>
>>>> > serve as an example for new activity authors.<br>
>>>> ><br>
>>>> > The docstrings in simpleactivity.py are an effective explanation of<br>
>>>> > the simplified API, so perhaps you can generate the documentation from<br>
>>>> > them in the usual Python fashion.<br>
>>>> ><br>
>>>> > Next to do is for a few activities to be developed using<br>
>>>> > SimpleActivity, so that you can see what remains common to the new<br>
>>>> > activities. The common code might then be added to SimpleActivity.<br>
>>>> ><br>
>>>> > testactivity.py is derived from SharedActivity, and so it is complex,<br>
>>>> > because a collaborating activity is complex. I'd like to see also an<br>
>>>> > activity example derived from SimpleActivity.<br>
>>>> ><br>
>>>> > The number of imports done by testactivity.py still seems high, and a<br>
>>>> > SimpleActivity example may be able to reduce that.<br>
>>>> ><br>
>>>> > --<br>
>>>> > James Cameron<br>
>>>> > <a href="http://quozl.linux.org.au/" target="_blank">http://quozl.linux.org.au/</a><br>
>>>> ><br>
>>>> _______________________________________________<br>
>>>> Sugar-Desarrollo mailing list<br>
>>>> <a href="mailto:Sugar-Desarrollo@lists.sugarlabs.org">Sugar-Desarrollo@lists.sugarlabs.org</a><br>
>>>> <a href="http://lists.sugarlabs.org/listinfo/sugar-desarrollo" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-desarrollo</a><br>
>>>><br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> Olpc-uruguay mailing list<br>
>>> <a href="mailto:Olpc-uruguay@lists.laptop.org">Olpc-uruguay@lists.laptop.org</a><br>
>>> <a href="http://lists.laptop.org/listinfo/olpc-uruguay" target="_blank">http://lists.laptop.org/listinfo/olpc-uruguay</a><br>
>>><br>
>>><br>
>><br>
><br>
_______________________________________________<br>
Sugar-Desarrollo mailing list<br>
<a href="mailto:Sugar-Desarrollo@lists.sugarlabs.org">Sugar-Desarrollo@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-desarrollo" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-desarrollo</a><br>
</div></div></blockquote></div><br></div>