def save(self, path):
     self.config = CustomConfigParser(self.encoding)
     for name, a_filter in self.filters.items():
         section_name = a_filter.PREFIX + (a_filter.filter_or and "OR_" or "AND_") + name
         if not self.config.has_section(section_name):
             self.config.add_section(section_name)
         for prop_name, value in a_filter.as_dict().items():
             self.config.set(section_name, prop_name, value)
     DocSaverMixin.save(self, path)
Ejemplo n.º 2
0
 def save(self, path):
     """fill document with information from .profile file"""
     self._set_repositories()
     self._set_files()
     self._set_peers()
     DocSaverMixin.save(self, path)