예제 #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])
예제 #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])
예제 #3
0
 def list_rcfiles(self):
     return list_rcfiles('umlmachines.conf')
예제 #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)
예제 #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])
예제 #6
0
 def __init__(self, section=None, files=list_rcfiles('paellarc')):
     if section is None:
         section = 'database'
     Configuration.__init__(self, section=section, files=files)
예제 #7
0
 def __init__(self, section=None, files=list_rcfiles('paellarc')):
     if section is None:
         section = 'database'
     Configuration.__init__(self, section=section, files=files)
예제 #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)
예제 #9
0
 def __init__(self, section=None, files=list_rcfiles("paellarc")):
     if section is None:
         section = "database"
     Configuration.__init__(self, section=section, files=files)
예제 #10
0
 def list_rcfiles(self):
     return list_rcfiles('umlmachines.conf')