コード例 #1
0
ファイル: main.py プロジェクト: actuarial-tools/camelot
 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()
コード例 #2
0
ファイル: main.py プロジェクト: kurtraschke/camelot
    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()
コード例 #3
0
ファイル: main.py プロジェクト: maurodoglio/Camelot
 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()
コード例 #4
0
ファイル: main.py プロジェクト: jeroendierckx/Camelot
 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()
コード例 #5
0
ファイル: __init__.py プロジェクト: actuarial-tools/camelot
 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()
コード例 #6
0
ファイル: __init__.py プロジェクト: kurtraschke/camelot
 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()