示例#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()