def load(self, path): """fill document with information from .profile file""" # load config if not DocSaverMixin.load(self, path): return False # synchronize cache for section in self.config.sections(): props = self.config.items(section) for filter_class in self.FILTERS: name, new_filter = filter_class.from_str(section, props) if new_filter is None: continue else: self.filters[name] = new_filter break # add match all self._create_match_all()
def load(self, path): """fill document with information from .profile file""" result = DocSaverMixin.load(self, path) self.get_files() self.get_peers() return result