Beispiel #1
0
 def __init__(self, config, dasmgr):
     DASRepresentation.__init__(self, config)
     self.dasmgr     = dasmgr
     self.dasmapping = self.dasmgr.mapping
     if  config.has_key('dbs'):
         self.dbs_global = config['dbs'].get('dbs_global_instance', None)
     else:
         self.dbs_global = None
     self.colors     = {}
     for system in self.dasmgr.systems:
         self.colors[system] = gen_color(system)
Beispiel #2
0
 def __init__(self, config, dasmgr):
     DASRepresentation.__init__(self, config)
     self.dasmgr     = dasmgr
     self.dasmapping = self.dasmgr.mapping
     if  'dbs' in config:
         self.dbs_global = self.dasmapping.dbs_global_instance()
     else:
         self.dbs_global = None
     self.colors = {'das':gen_color('das')}
     for system in self.dasmgr.systems:
         self.colors[system] = gen_color(system)
Beispiel #3
0
 def __init__(self, config, dasmgr):
     DASRepresentation.__init__(self, config)
     self.dasmgr     = dasmgr
     self.dasmapping = self.dasmgr.mapping
     if  'dbs' in config:
         self.dbs_global = self.dasmapping.dbs_global_instance()
     else:
         self.dbs_global = None
     self.colors = {'das':gen_color('das')}
     for system in self.dasmgr.systems:
         self.colors[system] = gen_color(system)