def __init__(self): self._parent = None self._proxy = manufacture.makeFileConfigurationProxy( content='[section1]\n\n') self.prop_normal = u'prop_normal' self.prop_ro = u'prop_ro' self.prop_rw = u'prop_rw' self._prop_wrapped = u'prop_wrapped'
def _getConfiguration(self, content=None): if not content: content = ( '[log]\n' 'log_file: Disabled\n' ) proxy = manufacture.makeFileConfigurationProxy( content=content, defaults=LOG_SECTION_DEFAULTS) return manufacture.makeLogConfigurationSection(proxy=proxy)
def _getSection(self, content=None): """ Return a log configuration section. """ if content is None: content = ( '[log]\n' 'log_file: Disable\n' ) proxy = manufacture.makeFileConfigurationProxy( content=content, defaults=LOG_SECTION_DEFAULTS) return manufacture.makeLogConfigurationSection(proxy=proxy)
def __init__(self, proxy=None): if proxy is None: self._proxy = manufacture.makeFileConfigurationProxy( content='[section1]\nenabled: True\n') else: self._proxy = proxy