[Sugar-devel] sugar-web - API for storing data

Daniel Narvaez dwnarvaez at gmail.com
Fri Aug 16 11:24:36 EDT 2013


On 16 August 2013 16:55, Gonzalo Odiard <gonzalo at laptop.org> wrote:

> * In gtk read is called in the map of the canvas. Is a little obscure
> and can be a problem in some cases. By example, in activities where
> you can start without a object and later select one with the object
> chooser.
> Examples are Read and ImageViewer activities in the latest versions.
> The problem was, adding a empty widget as a canvas triggered the read_file
> method.
> May be we can add a flag to disable the automatic call to read_file.
>

That's a good example of why I feel read/write is inflexible. You can work
it around with a flag sure, but it sort of sucks.


> * Some activities assume a object is available to start the collaboration,
> then should be needed start the collaboration after read_file.
> Right now, max_participants need be set before the toolbar  creation,
> and later changes do not enable/disable the collaboration button,
> then a case like this should be managed by the programmer.
>
>
Another good example.


> Should be good read this old bug http://bugs.sugarlabs.org/ticket/568
> now we can start with a empty page.
>
> I do not see problems with write_file. Activity class already have methods
> like can_close() to enable validations if needed in the activity.
>
>
Another "flag" to work around the inflexibility.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130816/6cc59222/attachment.html>


More information about the Sugar-devel mailing list