Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/misc.py
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-11-01 17:34:20 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-11-01 17:34:20 (GMT)
commitfc8c6eddc1ec1584d4e4bc9877b9daa3b64d8c43 (patch)
tree37a15d806c000ebe509c144e757d0d2813c5b092 /misc.py
parentb25544d196dc9ff7e509c13867cd468b7bdaed6a (diff)
#3498, #4558 Mount removable devices as utf8.
Diffstat (limited to 'misc.py')
-rw-r--r--misc.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/misc.py b/misc.py
index c9fc1a7..23459a9 100644
--- a/misc.py
+++ b/misc.py
@@ -132,8 +132,12 @@ def get_bundle(jobject):
try:
if jobject.is_activity_bundle():
return ActivityBundle(jobject.file_path)
- else:
+ elif jobject.is_content_bundle():
return ContentBundle(jobject.file_path)
+ elif jobject.is_entry_bundle():
+ return EntryBundle(jobject.file_path)
+ else:
+ return None
except MalformedBundleException, e:
logging.warning('Incorrect bundle: %r' % e)
return None