Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Activity Team/FAQ
(view source)
Revision as of 21:59, 8 February 2010
449 bytes added
,
21:59, 8 February 2010
→How do I know if my activity is running on an OLPC XO laptop?
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)
Walter
Bureaucrats
,
Administrators
10,579
edits