Ejemplo n.º 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
Ejemplo n.º 2
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
Ejemplo n.º 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()
Ejemplo n.º 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()
Ejemplo n.º 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()
Ejemplo n.º 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()
Ejemplo n.º 7
0
 def __init__(self, cfg=None):
     Uml.__init__(self)
     self.uml = UML()
     self.cfg = cfg
     self.options.update(self.cfg.get_umlopts())
Ejemplo n.º 8
0
 def __init__(self, cfg=None):
     Uml.__init__(self)
     self.uml = UML()
     self.cfg = cfg
     self.options.update(self.cfg.get_umlopts())
Ejemplo n.º 9
0
 def set_mode(self, mode):
     Uml.set_mode(self, mode)
     if self.mode == 'guest':
         self._init_uml_system()
Ejemplo n.º 10
0
 def set_mode(self, mode):
     Uml.set_mode(self, mode)
     if self.mode == 'guest':
         self._init_uml_system()