示例#1
0
 def __init__(self, config, workflow):
     GUI.__init__(self, config, workflow)
     install_console_reset()
     self._console_lock = GCLock(threading.RLock())  # terminal output lock
     self._exc = ExceptionCollector()
     (self._redraw_thread, self._redraw_shutdown) = (None, False)
     (self._redraw_event,
      self._immediate_redraw_event) = (GCEvent(rlock=True),
                                       GCEvent(rlock=True))
     self._redraw_interval = config.get_float('gui redraw interval',
                                              0.1,
                                              on_change=None)
     self._redraw_delay = config.get_float('gui redraw delay',
                                           0.05,
                                           on_change=None)
     element = config.get_composited_plugin('gui element',
                                            'report activity log',
                                            'MultiGUIElement',
                                            cls=GUIElement,
                                            on_change=None,
                                            bind_kwargs={'inherit': True},
                                            pargs=(workflow,
                                                   self._redraw_event,
                                                   sys.stdout))
     self._element = FrameGUIElement(config, 'gui', workflow,
                                     self._redraw_event, sys.stdout,
                                     self._immediate_redraw_event, element)
示例#2
0
 def __init__(self, config, workflow):
     try:
         import cherrypy
     except Exception:
         raise InstallationError('cherrypy is not installed!')
     self._cherrypy = cherrypy
     GUI.__init__(self, config, workflow)
     (self._config, self._workflow, self._counter) = (config, workflow, 0)
     self._title = self._workflow.task.get_description().task_name
示例#3
0
 def __init__(self, config, workflow):
     config.set('report', 'BasicReport BarReport')
     (self._stored_stdout, self._stored_stderr) = (sys.stdout, sys.stderr)
     GUI.__init__(self, config, workflow)
     self._reportHeight = 0
     self._statusHeight = 1
     self._old_message = None
     self._lock = GCLock(threading.RLock())  # drawing lock
     self._last_report = 0
     self._old_size = None
示例#4
0
	def __init__(self, config, workflow):
		config.set('report', 'BasicReport BarReport')
		(self._stored_stdout, self._stored_stderr) = (sys.stdout, sys.stderr)
		GUI.__init__(self, config, workflow)
		self._reportHeight = 0
		self._statusHeight = 1
		self._old_message = None
		self._lock = GCLock(threading.RLock()) # drawing lock
		self._last_report = 0
		self._old_size = None
示例#5
0
 def __init__(self, config, workflow):
     GUI.__init__(self, config, workflow)
     self._log = logging.getLogger('workflow')
     self._workflow = workflow
     self._report = config.get_composited_plugin(
         'report',
         'BasicTheme',
         'MultiReport',
         cls=Report,
         on_change=None,
         pargs=(workflow.job_manager.job_db, workflow.task))
 def __init__(self, config, workflow):
     if not cherrypy:
         raise InstallationError('cherrypy is not installed!')
     GUI.__init__(self, config, workflow)
     self.counter = 0
示例#7
0
	def __init__(self, config, workflow):
		config.set('report', 'BasicBarReport')
		GUI.__init__(self, config, workflow)
		self._reportHeight = None
	def __init__(self, config, workflow):
		if not cherrypy:
			raise InstallationError('cherrypy is not installed!')
		GUI.__init__(self, config, workflow)
		self.counter = 0
示例#9
0
 def __new__(cls, config, workflow):
     if is_dumb_terminal():
         return GUI.create_instance('BasicConsoleGUI', config, workflow)
     return GUI.__new__(cls)
示例#10
0
	def __init__(self, jobCycle, jobMgr, task):
		GUI.__init__(self, jobCycle, jobMgr, task)
		self.counter = 0
示例#11
0
	def __init__(self, config, workflow):
		config.set('report', 'BasicBarReport')
		GUI.__init__(self, config, workflow)
		self._report = self._reportClass.getInstance(self._workflow.jobManager.jobDB, self._workflow.task)
		self._reportHeight = None
示例#12
0
	def __init__(self, config, workflow):
		GUI.__init__(self, config, workflow)
		self._log = logging.getLogger('workflow')
		self._workflow = workflow
		self._report = config.get_composited_plugin('report', 'BasicTheme', 'MultiReport',
			cls=Report, on_change=None, pargs=(workflow.job_manager.job_db, workflow.task))