def __init__(self, path, translated=True): Bundle.__init__(self, path) self.bundle_exec = None self._name = None self._icon = None self._bundle_id = None self._mime_types = None self._show_launcher = True self._tags = None self._activity_version = '0' self._summary = None self._single_instance = False self._max_participants = 0 info_file = self.get_file('activity/activity.info') if info_file is None: raise MalformedBundleException('No activity.info file') self._parse_info(info_file) if translated: linfo_file = self._get_linfo_file() if linfo_file: self._parse_linfo(linfo_file) _bundle_instances[path] = self
def __init__(self, path, translated=True): Bundle.__init__(self, path) self.activity_class = None self.bundle_exec = None self._name = None self._icon = None self._bundle_id = None self._mime_types = None self._show_launcher = True self._tags = None self._activity_version = '0' self._summary = None self._single_instance = False self._max_participants = 0 info_file = self.get_file('activity/activity.info') if info_file is None: raise MalformedBundleException('No activity.info file') self._parse_info(info_file) if translated: linfo_file = self._get_linfo_file() if linfo_file: self._parse_linfo(linfo_file) _bundle_instances[path] = self
def __init__(self, path): Bundle.__init__(self, path) self._locale = None self._l10n = None self._category = None self._name = None self._subcategory = None self._category_class = None self._category_icon = None self._library_version = '0' self._bundle_class = None self._activity_start = None self._global_name = None info_file = self.get_file('library/library.info') if info_file is None: raise MalformedBundleException('No library.info file') self._parse_info(info_file) if (self.get_file('index.html') is None and self.get_file('library/library.xml') is None): raise MalformedBundleException( 'Content bundle %s has neither index.html nor library.xml' % self._path)
def __init__(self, path): Bundle.__init__(self, path) self.activity_class = None self.bundle_exec = None self._name = None self._local_name = None self._icon = None self._bundle_id = None self._mime_types = None self._show_launcher = True self._tags = None self._activity_version = '0' self._installation_time = os.stat(path).st_mtime self._summary = None self._local_summary = None info_file = self.get_file('activity/activity.info') if info_file is None: raise MalformedBundleException('No activity.info file') self._parse_info(info_file) linfo_file = self._get_linfo_file() if linfo_file: self._parse_linfo(linfo_file) if self._local_name == None: self._local_name = self._name if self._local_summary == None: self._local_summary = self._summary
def __init__(self, path, uid=None): """ Instantiate a Journal Entry Bundle from the given path to a xoj file. If provided, the specified uid will be used as the uid of the journal entry if/when this bundle is later installed. """ Bundle.__init__(self, path) self._uid = uid
def __init__(self, path): Bundle.__init__(self, path) self._locale = None self._name = None self._icon = None self._library_version = '0' self._activity_start = 'index.html' self._global_name = None info_file = self.get_file('library/library.info') if info_file is None: raise MalformedBundleException('No library.info file') self._parse_info(info_file) if self.get_file(self._activity_start) is None: raise MalformedBundleException( 'Content bundle %s does not have start page %s' % (self._path, self._activity_start))
def __init__(self, path, translated=True): Bundle.__init__(self, path) self.activity_class = None self.bundle_exec = None self._name = None self._icon = None self._bundle_id = None self._mime_types = None self._show_launcher = True self._tags = None self._activity_version = "0" self._installation_time = os.stat(path).st_mtime self._summary = None info_file = self.get_file("activity/activity.info") if info_file is None: raise MalformedBundleException("No activity.info file") self._parse_info(info_file) if translated: linfo_file = self._get_linfo_file() if linfo_file: self._parse_linfo(linfo_file)
def __init__(self, path): Bundle.__init__(self, path)