Пример #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
Пример #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
Пример #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()
Пример #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()
Пример #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()
Пример #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()
Пример #7
0
 def __init__(self, cfg=None):
     Uml.__init__(self)
     self.uml = UML()
     self.cfg = cfg
     self.options.update(self.cfg.get_umlopts())
Пример #8
0
 def __init__(self, cfg=None):
     Uml.__init__(self)
     self.uml = UML()
     self.cfg = cfg
     self.options.update(self.cfg.get_umlopts())
Пример #9
0
 def set_mode(self, mode):
     Uml.set_mode(self, mode)
     if self.mode == 'guest':
         self._init_uml_system()
Пример #10
0
 def set_mode(self, mode):
     Uml.set_mode(self, mode)
     if self.mode == 'guest':
         self._init_uml_system()