Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2009-08-21 01:08:28 (GMT)
committer Gary Martin <gary@garycmartin.com>2009-08-21 01:08:28 (GMT)
commit365f2a2698de6a61894bb2c58b20421c5533e42e (patch)
tree4daba734075f341dd74680e082565bbe4e8328fe /activity.py
parentd31ab17e04bb2d0c7a0b03e654fff590d7a06c3f (diff)
Initial mime type support to allow Journal, send to -> friend, sharing.
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/activity.py b/activity.py
index 0a8eead..eafb155 100644
--- a/activity.py
+++ b/activity.py
@@ -11,6 +11,10 @@ class PhysicsActivity(olpcgames.PyGameActivity):
game_name = 'physics'
game_title = _('Physics')
game_size = None # olpcgame will choose size
+
+ def __init__(self, handle):
+ super(PhysicsActivity, self).__init__(handle)
+ self.metadata['mime_type'] = 'application/x-physics-activity'
# setup the toolbar
def build_toolbar(self):