def start_model_thread(self): """Launch the second thread where the model lives""" from camelot.view.model_thread import get_model_thread, construct_model_thread from camelot.view.remote_signals import construct_signal_handler construct_model_thread() construct_signal_handler() mt = get_model_thread() mt.setup_exception_signal.connect(self.setup_exception) mt.start()
def start_model_thread(self): """Launch the second thread where the model lives""" from camelot.view.model_thread import get_model_thread, construct_model_thread from camelot.view.remote_signals import construct_signal_handler from camelot.core.conf import settings from camelot.core.sql import metadata metadata.bind = settings.ENGINE() construct_model_thread() construct_signal_handler() mt = get_model_thread() mt.setup_exception_signal.connect( self.initialization_exception ) mt.start()
def setUp(self): self.app = get_application() from camelot.view import model_thread from camelot.view.model_thread.no_thread_model_thread import NoThreadModelThread from camelot.view.model_thread import get_model_thread, has_model_thread from camelot.view.remote_signals import construct_signal_handler, has_signal_handler if not has_model_thread(): # # Run the tests without real threading, to avoid timing problems with screenshots etc. # model_thread._model_thread_.insert(0, NoThreadModelThread()) if not has_signal_handler(): construct_signal_handler() self.mt = get_model_thread() if not self.mt.isRunning(): self.mt.start() # make sure the startup sequence has passed self.process()
def setUp(self): self.app = get_application() from camelot.view import model_thread from camelot.view.model_thread.no_thread_model_thread import NoThreadModelThread from camelot.view.model_thread import get_model_thread, has_model_thread from camelot.view.remote_signals import construct_signal_handler, has_signal_handler if not has_model_thread(): # # Run the tests without real threading, to avoid timing problems with screenshots etc. # model_thread._model_thread_.insert( 0, NoThreadModelThread() ) if not has_signal_handler(): construct_signal_handler() self.mt = get_model_thread() if not self.mt.isRunning(): self.mt.start() # make sure the startup sequence has passed self.process()