Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorAgustin Zubiaga <aguz@sugarlabs.org>2012-02-10 13:49:36 (GMT)
committer Rafael Ortiz <rafael@activitycentral.com>2012-02-10 16:50:28 (GMT)
commit6f5683780a501e07498914a5049c39bd15f61650 (patch)
treecd8edaa945684d5cc267a8cce77d22e3d0db04bd /activity.py
parent7bb9c3554e2069211a99cfbf17373576eb71ad98 (diff)
Add mime type when save in the journal
This enable to other activities to identify the data Signed-off-by: Agustin Zubiaga <aguz@sugarlabs.org> Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org> Signed-off-by: Rafael Ortiz <rafael@activitycentral.com>
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/activity.py b/activity.py
index 88313e2..306b081 100644
--- a/activity.py
+++ b/activity.py
@@ -166,6 +166,7 @@ class StopWatchActivity(Activity):
self.gui.set_all(q)
def write_file(self, file_path):
+ self.metadata['mime_type'] = 'application/x-stopwatch-activity'
q = self.gui.get_all()
f = open(file_path, 'w')
cPickle.dump(q, f)