Пример #1
0
 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'
Пример #2
0
    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)
Пример #4
0
 def __init__(self, proxy=None):
     if proxy is None:
         self._proxy = manufacture.makeFileConfigurationProxy(
             content='[section1]\nenabled: True\n')
     else:
         self._proxy = proxy