[sugar] Activity API changes
Owen Williams
owen
Wed Feb 21 21:40:26 EST 2007
On Thu, 2007-02-22 at 01:24 +0100, Marco Pesenti Gritti wrote:
> Hello,
>
> I refactored the activity API quite a bit today. Since no one is using
> the presence service yet, the required changes will be trivial.
>
> 1 Change the import since the module name is changed. Something like:
>
> from sugar.activity import activity
>
> 2 Change the constructor to take and pass to Activity the handle
> parameter. Something like:
>
> class MyActivity(activity.Activity):
> def __init__(self, handle):
> activity.Activity.__init__(handle)
correction, should be:
activity.Activity.__init__(self, handle)
>
> I *might* also do a trivial change to activity.info tomorrow, while we
> are breaking stuff.
>
> If there is any issue please let me know.
>
> Marco
>
> _______________________________________________
> Sugar mailing list
> Sugar at laptop.org
> http://mailman.laptop.org/mailman/listinfo/sugar
>
>
More information about the Sugar-devel
mailing list