Thanks! <br><br>Gonzalo<br><br><div class="gmail_quote">On Mon, Feb 8, 2010 at 6:27 AM, Aleksey Lim <span dir="ltr"><<a href="mailto:alsroot@member.fsf.org">alsroot@member.fsf.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Sun, Feb 07, 2010 at 03:59:10PM -0300, Gonzalo Odiard wrote:<br>
> One of my activities is a game that does not produce any document in the<br>
> journal. Only the scores are recorded in activity_root/data.<br>
> The problem in the XO is that it gives an error because the method Activity<br>
> save() method checks whether a file was generated with the name<br>
> provided. Implode<br>
> activities like record two files to not display the error. The solution was<br>
> to implement file recording scores at the data directory in the method<br>
> can_close() rather than write_file() in my activity.<br>
> The problem is that it continues to generate an entry in the journal to the<br>
> output of the activity and I think that you should not do. The same applies<br>
> to the Log and Terminal activities that are most likely not used by<br>
> students, but also pollute the journal.<br>
> Is there any way around it now?<br>
> Accept some modification on this?<br>
<br>
</div></div>pass to Activity.__init__ create_jobject=False e.g.<br>
<br>
class MyActivity(activity.Activity):<br>
def __init__(self, handle):<br>
activity.Activity.__init__(self, handle, create_jobject=False)<br>
<br>
but keep in mind <a href="http://bugs.sugarlabs.org/ticket/1714" target="_blank">http://bugs.sugarlabs.org/ticket/1714</a> :)<br>
<br>
--<br>
<font color="#888888">Aleksey<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Gonzalo Odiard<br>Responsable de Desarrollo<br>Sistemas Australes<br>