Пример #1
0
 def __init__(self,MODULE_NAME='mongo_connect',conf=None):
   self.MODULE_NAME = MODULE_NAME
   newConfig = {}
   newConfig[MODULE_NAME] = GENERIC_CONFIG # extend our config and
                                                #personalize it
   Configurable.__init__(self,newConfig)
   self.load_conf(conf)
Пример #2
0
 def __init__(self,MODULE_NAME='auto_amqp',config=None):
   """ constructor if auto_amqp
   MODULE_NAME is important to distinguish the namespaces for the
   different Objects"""
   newConfig = { MODULE_NAME : DEFAULT_CONFIG}
   Configurable.__init__(self,newConfig)
   self.load_conf(config)
   self.MODULE_NAME = MODULE_NAME
Пример #3
0
 def __init__(self, MODULE_NAME="multi_amqp", config=None):
     self.NAME = MODULE_NAME
     newConfig = {MODULE_NAME: DEFAULT_CONFIG}
     Configurable.__init__(self, newConfig)
     self.load_conf(config)