Beispiel #1
0
 def __init__(self, section=None, files=list_rcfiles('paellarc')):
     if section is None:
         section = 'database'
     Configuration.__init__(self, section=section, files=files)
     if 'PAELLARC' in os.environ:
         paellarc = os.environ['PAELLARC']
         print 'reading paellarc at', paellarc
         self.read([paellarc])
Beispiel #2
0
def get_machines_config():
    paellarc = Configure(list_rcfiles('paellarc'))
    umcfg = paellarc.get('umlmachines', 'uml_machines_conf')
    cfg = RawConfigParser()
    cfg.read(umcfg)
    return Configure([umcfg])
Beispiel #3
0
 def list_rcfiles(self):
     return list_rcfiles('umlmachines.conf')
Beispiel #4
0
 def __init__(self,
              section='umlmachines',
              files=list_rcfiles('umlmachines.conf')):
     if section is None:
         section = 'database'
     Configuration.__init__(self, section=section, files=files)
Beispiel #5
0
def get_machines_config():
    paellarc = Configure(list_rcfiles('paellarc'))
    umcfg = paellarc.get('umlmachines', 'uml_machines_conf')
    cfg = RawConfigParser()
    cfg.read(umcfg)
    return Configure([umcfg])
 def __init__(self, section=None, files=list_rcfiles('paellarc')):
     if section is None:
         section = 'database'
     Configuration.__init__(self, section=section, files=files)
Beispiel #7
0
 def __init__(self, section=None, files=list_rcfiles('paellarc')):
     if section is None:
         section = 'database'
     Configuration.__init__(self, section=section, files=files)
Beispiel #8
0
 def __init__(self, section='umlmachines',
              files=list_rcfiles('umlmachines.conf')):
     if section is None:
         section = 'database'
     Configuration.__init__(self, section=section, files=files)
Beispiel #9
0
 def __init__(self, section=None, files=list_rcfiles("paellarc")):
     if section is None:
         section = "database"
     Configuration.__init__(self, section=section, files=files)
Beispiel #10
0
 def list_rcfiles(self):
     return list_rcfiles('umlmachines.conf')