[Sugar-devel] The Journal and the no document centric activities
Gonzalo Odiard
godiard at gmail.com
Mon Feb 8 19:52:03 EST 2010
Thanks!
Gonzalo
On Mon, Feb 8, 2010 at 6:27 AM, Aleksey Lim <alsroot at member.fsf.org> wrote:
> On Sun, Feb 07, 2010 at 03:59:10PM -0300, Gonzalo Odiard wrote:
> > One of my activities is a game that does not produce any document in the
> > journal. Only the scores are recorded in activity_root/data.
> > The problem in the XO is that it gives an error because the method
> Activity
> > save() method checks whether a file was generated with the name
> > provided. Implode
> > activities like record two files to not display the error. The solution
> was
> > to implement file recording scores at the data directory in the method
> > can_close() rather than write_file() in my activity.
> > The problem is that it continues to generate an entry in the journal to
> the
> > output of the activity and I think that you should not do. The same
> applies
> > to the Log and Terminal activities that are most likely not used by
> > students, but also pollute the journal.
> > Is there any way around it now?
> > Accept some modification on this?
>
> pass to Activity.__init__ create_jobject=False e.g.
>
> class MyActivity(activity.Activity):
> def __init__(self, handle):
> activity.Activity.__init__(self, handle, create_jobject=False)
>
> but keep in mind http://bugs.sugarlabs.org/ticket/1714 :)
>
> --
> Aleksey
>
--
Gonzalo Odiard
Responsable de Desarrollo
Sistemas Australes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100208/a873b602/attachment.htm
More information about the Sugar-devel
mailing list