def initialize(self, html_template=None, js_template=None, cors_origins=None): RequestHandler.initialize(self) self.set_cors_methods("OPTIONS,GET,POST") if cors_origins: self.set_cors_whitelist(cors_origins) self._html_template = html_template self._js_template = js_template
def initialize(self, url=None, as_attachment=False, basename=None, access_validation=None): RequestHandler.initialize(self) self._url = url self._as_attachment = as_attachment self._basename = basename self._access_validation = access_validation
def initialize(self): 'Hook for subclass initialization' commit_db() self.uuid = self.gen_uuid() self.request.uuid = self.uuid self.request.o_method = self.request.method method = self.get_argument('_method', None) if method is not None: self.request.method = str(method.upper()) RequestHandler.initialize(self)
def initialize(self, html_template=None, js_template=None, http_origins=None, ws_url=None): RequestHandler.initialize(self) self.set_cors_methods("OPTIONS,GET,POST") if http_origins: self.set_cors_whitelist(http_origins) self._html_template = html_template self._js_template = js_template self._ws_url = ws_url if ws_url else ''
def initialize(self, services): RequestHandler.initialize(self) self._services = services self._logger = self.settings['logger']
def initialize(self): self.template = getTName(self) self.data = {'error': '0'} RequestHandler.initialize(self)
def initialize(self, services): RequestHandler.initialize(self) #super(BaseHandler, self).initialize() self._logger = self.settings['logger'] self._services = services
def initialize(self): RequestHandler.initialize(self) self._user = None self._manager = None
def initialize(self, language_helper: LanguageHelper): """Initialize the handler.""" RequestHandler.initialize(self) self._language_helper = language_helper self._logger = logging.getLogger('MODEL_HANDLER')