Beispiel #1
0
 def __init__(self, cfg):
     Uml.__init__(self)
     self.cfg = cfg
     self.cfg.change('umlmachines')
     self.options.update(self.cfg.get_umlopts())
     self.current = None
     self.run_process = None
 def __init__(self, cfg):
     Uml.__init__(self)
     self.cfg = cfg
     self.cfg.change("umlmachines")
     self.options.update(self.cfg.get_umlopts())
     self.current = None
     self.run_process = None
Beispiel #3
0
 def __init__(self, cfg=None):
     Uml.__init__(self)
     if cfg is None:
         raise Error, 'need config for UmlChroot'
     self.cfg = cfg
     try:
         logfile = os.environ['LOGFILE']
     except KeyError:
         logfile = cfg['host_logfile']
     os.environ['LOGFILE'] = logfile
     self.set_options()
Beispiel #4
0
 def __init__(self, cfg=None):
     Uml.__init__(self)
     if cfg is None:
         raise Error, 'need config for UmlChroot'
     self.cfg = cfg
     try:
         logfile = os.environ['LOGFILE']
     except KeyError:
         logfile = cfg['host_LOGFILE']
     os.environ['LOGFILE'] = logfile
     self.set_options()
Beispiel #5
0
 def __init__(self, cfg=None):
     Uml.__init__(self)
     if cfg is None:
         raise Error, 'need config for UmlChroot'
     self.cfg = cfg
     lvar = 'LOGFILE'
     if lvar in os.environ:
         logfile = os.environ[lvar]
     else:
         logfile = cfg['host_logfile']
         os.environ[lvar] = logfile
     logfile = path(logfile).expand()
     self.set_options()
Beispiel #6
0
 def __init__(self, cfg=None):
     Uml.__init__(self)
     if cfg is None:
         raise Error, 'need config for UmlChroot'
     self.cfg = cfg
     lvar = 'LOGFILE'
     if lvar in os.environ:
         logfile = os.environ[lvar]
     else:
         logfile = cfg['host_logfile']
         os.environ[lvar] = logfile
     logfile = path(logfile).expand()
     self.set_options()
 def __init__(self, cfg=None):
     Uml.__init__(self)
     self.uml = UML()
     self.cfg = cfg
     self.options.update(self.cfg.get_umlopts())
Beispiel #8
0
 def __init__(self, cfg=None):
     Uml.__init__(self)
     self.uml = UML()
     self.cfg = cfg
     self.options.update(self.cfg.get_umlopts())
Beispiel #9
0
 def set_mode(self, mode):
     Uml.set_mode(self, mode)
     if self.mode == 'guest':
         self._init_uml_system()
Beispiel #10
0
 def set_mode(self, mode):
     Uml.set_mode(self, mode)
     if self.mode == 'guest':
         self._init_uml_system()