Changes
Jump to navigation
Jump to search
Line 15:
Line 15:
+
Line 26:
Line 27:
+
+
Development Team/Almanac/sugar.activity.activity (view source)
Revision as of 16:47, 2 June 2008
, 16:47, 2 June 2008→Class: Activity
my_id = self.get_id()
my_id = self.get_id()
...
...
=== How do I create a new activity that is derived from the base Activity class? ===
=== How do I create a new activity that is derived from the base Activity class? ===
def __init__(self, handle):
def __init__(self, handle):
activity.Activity.__init__(self, handle)
activity.Activity.__init__(self, handle)
=== How do I implement a read_file method for my activity so that I can resume activities from the sugar journal? ===
=== How do I implement a read_file method for my activity so that I can resume activities from the sugar journal? ===
=== How do I implement a write_file method for my activity in order to persist my activity in the journal? ===
=== How do I implement a write_file method for my activity in order to persist my activity in the journal? ===