Package Camelot :: Package camelot :: Package view :: Package model_thread
[frames] | no frames]

Package model_thread

source code

Submodules

Classes
  ModelThreadException
  AbstractModelThread
Abstract implementation of a model thread class Thread in which the model runs, all requests to the model should be posted to the the model thread.
Functions
 
model_function(original_function)
Decorator to ensure a function is only called from within the model thread. If this function is called in another thread, an exception will be thrown
source code
 
gui_function(original_function)
Decorator to ensure a function is only called from within the gui thread. If this function is called in another thread, an exception will be thrown
source code
 
setup_model()
Call the setup_model function in the settings
source code
 
construct_model_thread(*args, **kwargs) source code
 
has_model_thread() source code
 
get_model_thread() source code
 
post(request, response=None, exception=None)
Post a request and a response to the default model thread
source code
Variables
  logger = logging.getLogger('camelot.view.model_thread')
  _model_thread_ = []
  __package__ = 'Camelot.camelot.view.model_thread'