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 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
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 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 _bundle_instances[path] = self
def __init__(self, path): Bundle.__init__(self, path)