[Sugar-devel] [Sugar-desarrollo] Introducing SimpleActivity / Introduciendo SimpleActivity

Gonzalo Odiard gonzalo at laptop.org
Fri Nov 22 08:33:27 EST 2013


Separated files to SimpleActivity and SharedActivity would be good,
to avoid importing all the telepathy and network stuff if will not be used.

I would like to see a HelloWorld example, the extreme minimal needed to
create a activity.

Gonzalo


On Fri, Nov 22, 2013 at 10:18 AM, Agustin Zubiaga Sanchez <
aguz at sugarlabs.org> wrote:

> Thank you!
>
> James:
> I take your point... I am going to make separated branches one for
> collaboration and another for just a SimpleActivity Activity.
> I will try to do that today, anyway I will notify.
>
> Regards,
> aguz
>
>
>
> 2013/11/22 James Cameron <quozl at laptop.org>
>
> > +1
> >
> > I have reviewed simpleactivity.py and testactivity.py
> >
> > This code is very legible and explains well what it does, and can
> > serve as an example for new activity authors.
> >
> > The docstrings in simpleactivity.py are an effective explanation of
> > the simplified API, so perhaps you can generate the documentation from
> > them in the usual Python fashion.
> >
> > Next to do is for a few activities to be developed using
> > SimpleActivity, so that you can see what remains common to the new
> > activities.  The common code might then be added to SimpleActivity.
> >
> > testactivity.py is derived from SharedActivity, and so it is complex,
> > because a collaborating activity is complex.  I'd like to see also an
> > activity example derived from SimpleActivity.
> >
> > The number of imports done by testactivity.py still seems high, and a
> > SimpleActivity example may be able to reduce that.
> >
> > --
> > James Cameron
> > http://quozl.linux.org.au/
> >
> _______________________________________________
> Sugar-Desarrollo mailing list
> Sugar-Desarrollo at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-desarrollo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20131122/aa3bb432/attachment.html>


More information about the Sugar-devel mailing list