Development Team/Almanac/sugar.activity.activity: Difference between revisions

Line 15: Line 15:
           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? ===
Line 26: Line 27:
     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? ===