Example #1
0
 def __init__(self, lang):
     """ Reads translation file and opens new translation log """
     SimpleConfig.__init__(self, "translations")
     try:
         self._logger.info("Read translation codes for " + lang)
         self._getTranslationConfig(lang)
         self._codes = self.getConfigBySection("codes")
     except Exception as ex:
         msg = ex.args + (lang,)
         raise ConfigurationException(msg, self._logger)
Example #2
0
 def __init__(self):
     """  Reads plc ocnfiguration file and opens new logger  """
     name = 'plc'
     SimpleConfig.__init__(self, name)
     self.readConfiguration(name)
Example #3
0
 def __init__(self):
     SimpleConfig.__init__(self, self._configFileName)
     self.readConfiguration(self._configFileName)