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

# Package model_thread

source code

Submodules
Camelot.camelot.view.model_thread.no_thread_model_thread: Created on Sep 12, 2009 Camelot.camelot.view.model_thread.signal_slot_model_thread: Created on Sep 9, 2009

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``'``