def __init__(self, settings_module=None, extra_settings=None,
                 application_options=None, httpserver_options=None,
                 io_loop=None):
        """
        Automatically involves torext's settings
        """
        global settings

        if settings_module:
            self.module_config(settings_module)
        if extra_settings:
            self.update_settings(extra_settings)
        self._application_options = application_options
        self._httpserver_options = httpserver_options
        self.io_loop = io_loop
        self.is_setuped = False
        self.handlers = []
        self.default_host = '.*$'
        self.host_handlers = {
            self.default_host: []
        }
        self.application = None
        self.project = None
        self.uimodules = {}
        self.json_encoder = json_encode
        self.json_decoder = json_decode

        self.settings = settings

        TorextApp.current_app = self
def __init__ ( self , settings_module = None , extra_settings = None , application_options = None , httpserver_options = None , io_loop = None ) : global settings if settings_module : self . module_config ( settings_module ) if extra_settings : self . update_settings ( extra_settings ) self . _application_options = application_options self . _httpserver_options = httpserver_options self . io_loop = io_loop self . is_setuped = False self . handlers = [ ] self . default_host = '.*$' self . host_handlers = { self . default_host : [ ] } self . application = None self . project = None self . uimodules = { } self . json_encoder = json_encode self . json_decoder = json_decode self . settings = settings TorextApp . current_app = self
Automatically involves torext's settings