Class e.c.a.Application(BaseApplication):

Part of elisa.core.application View In Hierarchy

Application is the entry point of Elisa. It groups all the necessary elements needed for Elisa to run. It is in charge of instantiating a Config and a PluginRegistry. Application also provides access to input events and data, and holds the user interfaces.
Instance Variablesplugin_registryloads and manages the plugins (type: elisa.core.plugin_registry.PluginRegistry )
configApplication's configuration file, storing options (type: elisa.core.config.Config )
optionsOptions passed on the command line when launching elisa (type: elisa.core.options.Options )
busDOCME (type: elisa.core.bus.Bus )
metadata_managerDOCME (type: elisa.core.metadata_manager.MetadataManager )
resource_managerDOCME (type: elisa.core.resource_manager.ResourceManager )
service_managerDOCME (type: elisa.core.service_manager.ServiceManager )
interface_controllerDOCME (type: elisa.core.interface_controller.InterfaceController )
input_managerDOCME (type: elisa.core.input_manager.InputManager )
storethe access point to the database using storm (type: elisa.extern.twisted_storm.store.DeferredStore )
Line # Kind Name Docs
222 Method __init__ Undocumented
330 Method log_traceback Log the traceback without stopping the process. This could ususally be
351 Method log_failure Log the twisted failure without re-raising the exception. Example in
371 Method initialize Load the providers for the different managers, then initialize the
401 Method initialize_db initialize the database depending on the configuration
420 Method start Execute the application.
455 Method stop Stop the application.
265 Method _update_check_callback Undocumented
297 Method _load_exception_hook Override the default system exception hook with our own
309 Method _excepthook Undocumented
315 Method _after_hook Undocumented
519 Method _close_splash_screen Undocumented
523 Method _on_copydata Undocumented

Inherited from BaseApplication:

Line # Kind Name Docs
173 Method is_power_user Return whether the user is a "power user".
117 Method _create_plugin_registry Undocumented
125 Method _get_config_filename Undocumented
144 Method _load_config Undocumented
def __init__(self, options):
Undocumented
def _update_check_callback(self, results):
Undocumented
def _load_exception_hook(self):
Override the default system exception hook with our own
def _excepthook(self, *args):
Undocumented
def _after_hook(self, data):
Undocumented
def log_traceback(self):

Log the traceback without stopping the process. This could ususally be used in parts, where you want to go on and log the exception. Example:

   try:
       component.initialize()
   except:
       # and log all the other exceptions
       path = application.log_traceback()
       self.warning("Initilize Component '%s' failed. Traceback saved at %s" % path)
   self.going_on()
Returnspath to the file, where the traceback got logged
def log_failure(self, failure):

Log the twisted failure without re-raising the exception. Example in an errback:

   def errback(failure):
       path = application.log_failure(failure)
       self.warning("Connection refused. Full output at %s" % path)
       return
Parametersfailurethe failure to log (type: twisted.python.failure.Failure )
Returnspath to the file, where the traceback got logged
def initialize(self):
Load the providers for the different managers, then initialize the interface_controller.
def initialize_db(self):
initialize the database depending on the configuration
def start(self):
Execute the application.

Start the bus and the update checker.

def stop(self, stop_reactor=True):
Stop the application.
Parametersstop_reactorstop the reactor after stopping the application (type: bool )
Returns (type: twisted.internet.defer.Deferred )
def _close_splash_screen(self):
Undocumented
def _on_copydata(self, hwnd, msg, wparam, lparam):
Undocumented
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.