add extend in config setting

This commit is contained in:
2014-03-08 18:53:22 +01:00
parent c175519211
commit d3f9d20ab5
2 changed files with 13 additions and 0 deletions

View File

@ -408,6 +408,10 @@ class Settings(object):
props.remove(propname)
self._setproperties(props, None, None)
def extend(self, propnames):
for propname in propnames:
self.append(propname)
def _setproperties(self, properties, opt, path):
"""save properties for specified opt
(never save properties if same has option properties)