Updated to use application/vnd.olpc-sugar instead of application/vnd.olpc-x-sugar.
This commit is contained in:
@@ -116,7 +116,8 @@ class DSObject(object):
|
||||
return activities
|
||||
|
||||
def is_bundle(self):
|
||||
return self.metadata['mime_type'] == 'application/vnd.olpc-x-sugar'
|
||||
return self.metadata['mime_type'] in ['application/vnd.olpc-x-sugar',
|
||||
'application/vnd.olpc-sugar']
|
||||
|
||||
def resume(self, service_name=None):
|
||||
if self.is_bundle():
|
||||
|
||||
@@ -133,7 +133,7 @@ class CollapsedEntry(CanvasRoundBox):
|
||||
if self._icon_name:
|
||||
return self._icon_name
|
||||
|
||||
if self._is_bundle():
|
||||
if self.jobject.is_bundle():
|
||||
bundle = Bundle(self.jobject.file_path)
|
||||
self._icon_name = bundle.get_icon()
|
||||
|
||||
@@ -159,9 +159,6 @@ class CollapsedEntry(CanvasRoundBox):
|
||||
ti = time.strptime(self.jobject.metadata['mtime'], "%Y-%m-%dT%H:%M:%S")
|
||||
return str(Date(time.mktime(ti)))
|
||||
|
||||
def _is_bundle(self):
|
||||
return self.jobject.metadata['mime_type'] == 'application/vnd.olpc-x-sugar'
|
||||
|
||||
def _format_title(self):
|
||||
return '"%s"' % self.jobject.metadata['title']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user