Esempio n. 1
0
    def __init__(self,dbmanager,triggercfg):
        self.dbmanager=dbmanager
        self.triggercfg=triggercfg

        # init log
        self.managerlogger = sysmanagerlog.SysManagerLog(__file__)
        self.errorlogger = syserrorlog.SysErrorLog(__file__)
Esempio n. 2
0
    def __init__(self):
        # init log
        self.managerlogger = sysmanagerlog.SysManagerLog(__file__)
        self.errorlogger = syserrorlog.SysErrorLog(__file__)

        self._dict = None
        self._dict_conf = None
Esempio n. 3
0
    def __init__(self):
        # init log
        self.managerlogger = sysmanagerlog.SysManagerLog(__file__)
        self.errorlogger = syserrorlog.SysErrorLog(__file__)

        self.managerlogger.logger.info("Done DictManager init")
        self.__dicts = {}
        self.__dicts_conf = []
Esempio n. 4
0
 def __init__(self, access_dict_model):
     """
     init dmp_request
     """
     self.dmp_request = dmp_request.DmpRequest()
     self.managerlogger = sysmanagerlog.SysManagerLog(__file__)
     self.errorlogger = syserrorlog.SysErrorLog(__file__)
     self.access_dict_model = access_dict_model
Esempio n. 5
0
    def __init__(self):

        self.dbmanager = None
        self.db_cmd = ''
        # init log
        self.managerlogger = sysmanagerlog.SysManagerLog(__file__)
        self.errorlogger = syserrorlog.SysErrorLog(__file__)

        self.managerlogger.logger.info('the basemanager innit..')
Esempio n. 6
0
 def __init__(self):
      # init log
      self.managerlogger = sysmanagerlog.SysManagerLog(__file__)
      self.errorlogger = syserrorlog.SysErrorLog(__file__)
    
      self.dbmanager = None
      self.cfgmanager = None
      self.req = None
      self.accessDictModel = None
Esempio n. 7
0
    def __init__(self, access_model):
        """
         init log
         init and read conf
        """
        self.managerlogger = sysmanagerlog.SysManagerLog(__file__)
        self.errorlogger = syserrorlog.SysErrorLog(__file__)
        self.access_model = access_model

        self.__conf_dict = {}
Esempio n. 8
0
    def __init__(self, dbmanager, triggercfg, managercfg, displaycfg):
        self.dbmanager = dbmanager
        self.triggercfg = triggercfg
        self.managercfg = managercfg
        self.displaycfg = displaycfg

        self.accesslogger = accesslog.AccessLog(__file__)
        self.managerlogger = sysmanagerlog.SysManagerLog(__file__)
        self.errorlogger = syserrorlog.SysErrorLog(__file__)
        self.accessDictModel = accessdictmodel.AccessDictModel()
Esempio n. 9
0
    def __init__(self):
        """
        do init
        """
        #print 'base trigger'
        self.access_dict_model = None
        self.dmp_request = None
        self.config_manager = None
        self.dict_manager = None
        self.feature_set = None

        self.managerlogger = sysmanagerlog.SysManagerLog(__file__)
        self.errorlogger = syserrorlog.SysErrorLog(__file__)
Esempio n. 10
0
    def __init__(self, config, access_model):
        """
         init log
         init and load display_manager
        """
        self.managerlogger = sysmanagerlog.SysManagerLog(__file__)
        self.errorlogger = syserrorlog.SysErrorLog(__file__)
        self.access_model = access_model

        self.managerlogger.logger.info('Start init DmpDisplay for config')

        try:
            self.__dmp_display_manager = dmp_display_conf.DmpDisplayManager(
                access_model)
            length = self.__dmp_display_manager.load_conf(config)

            self.managerlogger.logger.info('End init DmpDisplay for config')

        except Exception as e:
            self.managerlogger.logger.warning(
                'Failed init DmpDisplay for config')
            self.errorlogger.logger.warning(
                'Failed init DmpDisplay for config')
Esempio n. 11
0
 def __init__(self, configfile):
     self.configfile=configfile      
     self.managerlogger=sysmanagerlog.SysManagerLog(__file__)
     self.errorlogger=syserrorlog.SysErrorLog(__file__)
     self.configP=self.init_config(self.configfile,self.managerlogger)
Esempio n. 12
0
 def __init__(self, dimension, file):
     self.dimension = dimension
     self.file = file
     self.managerlogger = sysmanagerlog.SysManagerLog(__file__)
     self.errorlogger = syserrorlog.SysErrorLog(__file__)