Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-10-31 13:58:37 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-10-31 13:58:37 (GMT)
commit1a3d520dce5d5accebde23cd46a181b57e0860d1 (patch)
tree18747f7d1a7aad060f6730b67553556a27c474d4 /lib
parent6278f8207ee8994924672456d2afad164aa900e5 (diff)
Smarter mime_types parsing logic. Works also if there
are spaces between types.
Diffstat (limited to 'lib')
-rw-r--r--lib/sugar/bundle/activitybundle.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sugar/bundle/activitybundle.py b/lib/sugar/bundle/activitybundle.py
index 8ba61fe..ce1510f 100644
--- a/lib/sugar/bundle/activitybundle.py
+++ b/lib/sugar/bundle/activitybundle.py
@@ -93,8 +93,8 @@ class ActivityBundle(Bundle):
self._path)
if cp.has_option(section, 'mime_types'):
- mime_list = cp.get(section, 'mime_types')
- self._mime_types = mime_list.strip(';').split(';')
+ mime_list = cp.get(section, 'mime_types').strip(';')
+ self._mime_types = [ mime.strip() for mime in mime_list.split(';') ]
if cp.has_option(section, 'show_launcher'):
if cp.get(section, 'show_launcher') == 'no':