<div dir="ltr">On 16 August 2013 16:55, Gonzalo Odiard <span dir="ltr"><<a href="mailto:gonzalo@laptop.org" target="_blank">gonzalo@laptop.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">* In gtk read is called in the map of the canvas. Is a little obscure
<div>and can be a problem in some cases. By example, in activities where </div><div>you can start without a object and later select one with the object chooser.</div><div>Examples are Read and ImageViewer activities in the latest versions.</div>

<div>The problem was, adding a empty widget as a canvas triggered the read_file method.</div><div>May be we can add a flag to disable the automatic call to read_file.</div></div></blockquote><div><br></div><div>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.<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div>* Some activities assume a object is available to start the collaboration,</div>

<div>then should be needed start the collaboration after read_file.</div><div>Right now, max_participants need be set before the toolbar  creation,</div><div>and later changes do not enable/disable the collaboration button,</div>

<div>then a case like this should be managed by the programmer.</div><div><br></div></div></blockquote><div><br></div><div>Another good example.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div></div><div>Should be good read this old bug <a href="http://bugs.sugarlabs.org/ticket/568" target="_blank">http://bugs.sugarlabs.org/ticket/568</a></div><div>now we can start with a empty page.</div>
<div><br></div><div>I do not see problems with write_file. Activity class already have methods </div><div>like can_close() to enable validations if needed in the activity.</div><div><br></div></div></blockquote><div><br>
</div><div>Another "flag" to work around the inflexibility.<br></div></div></div></div>