Activity Team/FAQ: Difference between revisions
| Line 78: | Line 78: | ||
if os.path.exists('/etc/olpc-release'): | if os.path.exists('/etc/olpc-release'): | ||
... | ... | ||
==== How do I tell Sugar that my activity does not write any data to the Journal? ==== | |||
One of my activities is a game that does not produce any document in the journal. How do I inform Sugar? | |||
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) | |||