9 Feb 01:52
Re: The Journal and the no document centric activities
Gonzalo Odiard <godiard <at> gmail.com>
2010-02-09 00:52:03 GMT
2010-02-09 00:52:03 GMT
Thanks!
Gonzalo
On Mon, Feb 8, 2010 at 6:27 AM, Aleksey Lim <alsroot <at> member.fsf.org> wrote:
pass to Activity.__init__ create_jobject=False e.g.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?
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
_______________________________________________ Sugar-devel mailing list Sugar-devel <at> lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
RSS Feed