Пример #1
0
 def get_template_namespace(self):
     namespace = RequestHandler.get_template_namespace(self)
     namespace["emmed_css"] = self._emmed_css
     namespace["emmed_js"] = self._emmed_js
     namespace["ui_list"] = self._ui_list
     
     return namespace
Пример #2
0
    def get_template_namespace(self):
        namespace = RequestHandler.get_template_namespace(self)
        namespace["emmed_css"] = self._emmed_css
        namespace["emmed_js"] = self._emmed_js
        namespace["ui_list"] = self._ui_list

        return namespace
Пример #3
0
 def get_template_namespace(self):
     namespace = RequestHandler.get_template_namespace(self)
     namespace["u"] = tornado.util.u
     namespace["app_config"] = self.app_config
     namespace["db_session"] = self.get_db_session()
     namespace['handler'] = self
     
     return namespace
Пример #4
0
 def get_template_namespace(self):
     custom_namespace = dict(
         upload_url=self.upload_url,
         oss_img_url=self.oss_img_url,
         oss_file_url=self.oss_file_url
     )
     namespace = RequestHandler.get_template_namespace(self)
     namespace.update(custom_namespace)
     return namespace
Пример #5
0
 def get_template_namespace(self, *args, **kwargs):
     res = RequestHandler.get_template_namespace(self, *args, **kwargs)
     res.update(self.template_var)
     res['settings'] = self.settings
     return res
Пример #6
0
    def get_template_namespace(self):
        namespace = RequestHandler.get_template_namespace(self)
        namespace.update(dict(q = self.q))

        return namespace