[Sugar-devel] The Journal and the no document centric activities
Aleksey Lim
alsroot at member.fsf.org
Mon Feb 8 04:27:55 EST 2010
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
More information about the Sugar-devel
mailing list