##// END OF EJS Templates
actually use new tornado_settings...
MinRK -
Show More
@@ -547,7 +547,7 b' class NotebookApp(BaseIPythonApplication):'
547 def _mathjax_url_default(self):
547 def _mathjax_url_default(self):
548 if not self.enable_mathjax:
548 if not self.enable_mathjax:
549 return u''
549 return u''
550 static_url_prefix = self.webapp_settings.get("static_url_prefix",
550 static_url_prefix = self.tornado_settings.get("static_url_prefix",
551 url_path_join(self.base_url, "static")
551 url_path_join(self.base_url, "static")
552 )
552 )
553
553
@@ -703,15 +703,15 b' class NotebookApp(BaseIPythonApplication):'
703
703
704 def init_webapp(self):
704 def init_webapp(self):
705 """initialize tornado webapp and httpserver"""
705 """initialize tornado webapp and httpserver"""
706 self.webapp_settings['allow_origin'] = self.allow_origin
706 self.tornado_settings['allow_origin'] = self.allow_origin
707 if self.allow_origin_pat:
707 if self.allow_origin_pat:
708 self.webapp_settings['allow_origin_pat'] = re.compile(self.allow_origin_pat)
708 self.tornado_settings['allow_origin_pat'] = re.compile(self.allow_origin_pat)
709 self.webapp_settings['allow_credentials'] = self.allow_credentials
709 self.tornado_settings['allow_credentials'] = self.allow_credentials
710
710
711 self.web_app = NotebookWebApplication(
711 self.web_app = NotebookWebApplication(
712 self, self.kernel_manager, self.contents_manager,
712 self, self.kernel_manager, self.contents_manager,
713 self.cluster_manager, self.session_manager, self.kernel_spec_manager,
713 self.cluster_manager, self.session_manager, self.kernel_spec_manager,
714 self.log, self.base_url, self.default_url, self.webapp_settings,
714 self.log, self.base_url, self.default_url, self.tornado_settings,
715 self.jinja_environment_options
715 self.jinja_environment_options
716 )
716 )
717 if self.certfile:
717 if self.certfile:
General Comments 0
You need to be logged in to leave comments. Login now