Beispiel #1
0
 def __init__(self, path=None):
     self.defaults_settings = os.path.join(os.path.dirname(__file__),
                                           'defaultsettings.py')
     self.project_settings = os.path.join(os.path.dirname(__file__),
                                          'projectsettings.py')
     defaults = RFSettings(path=self.project_settings,
                           defaults=self.defaults_settings)._settings
     if path:
         RFSettings.__init__(self, path=path, defaults=defaults)
     else:
         RFSettings.__init__(self, 'mabot', defaults=defaults)
     self.load()
 def __init__(self, path=None):
     self.defaults_settings = os.path.join(os.path.dirname(__file__),
                                           'defaultsettings.py')
     self.project_settings = os.path.join(os.path.dirname(__file__),
                                           'projectsettings.py')
     defaults = RFSettings(path=self.project_settings,
                           defaults=self.defaults_settings)._settings
     if path:
         RFSettings.__init__(self, path=path, defaults=defaults)
     else:
         RFSettings.__init__(self, 'mabot', defaults=defaults)
     self.load()
Beispiel #3
0
 def update_settings(self, new_settings, suite):
     if not new_settings:
         return
     suite.update_default_message(self._settings["default_message"],
                                  new_settings["default_message"])
     RFSettings.update(self, new_settings)
 def update_settings(self, new_settings, suite):
     if not new_settings:
         return
     suite.update_default_message(self._settings["default_message"],
                                  new_settings["default_message"])
     RFSettings.update(self, new_settings)