Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Francis <francis@sugarlabs.org>2012-06-03 01:13:32 (GMT)
committer Daniel Francis <francis@sugarlabs.org>2012-06-03 01:13:32 (GMT)
commit9fabe0b3d7d16859316bd28271bcd8ffd45eb1eb (patch)
treeb8a09f8abb1f1b90fd4901446bb4e67e3614466b
parentca9e22818438d35b374d4078768d78c890b926a1 (diff)
Mime type implementation
-rw-r--r--activity.py1
-rw-r--r--activity/activity.info1
2 files changed, 2 insertions, 0 deletions
diff --git a/activity.py b/activity.py
index e679417..f3e8001 100644
--- a/activity.py
+++ b/activity.py
@@ -175,6 +175,7 @@ class AnimateActivity(activity.Activity):
self.show()
def write_file(self, file_path):
+ self.metadata["mime_type"] = "application/x-animate-activity"
zfile = zipfile.ZipFile(file_path, 'w')
temp_file_path = tempfile.mktemp()
temp_file = open(temp_file_path, "w")
diff --git a/activity/activity.info b/activity/activity.info
index 214cffc..124ced9 100644
--- a/activity/activity.info
+++ b/activity/activity.info
@@ -6,3 +6,4 @@ bundle_id = org.sugarlabs.Animate
exec = sugar-activity activity.AnimateActivity -s
icon = animate-icon
license = GPLv3+
+mime_types = application/x-turtle-art