##// END OF EJS Templates
allow notebook names with spaces
Zachary Sailer -
Show More
@@ -22,6 +22,7 HTTPError = web.HTTPError
22 22
23 23 from ..base.handlers import IPythonHandler
24 24 from ..utils import url_path_join
25 from urllib import quote
25 26
26 27 #-----------------------------------------------------------------------------
27 28 # Handlers
@@ -50,6 +51,8 class NamedNotebookHandler(IPythonHandler):
50 51 def get(self, notebook_path):
51 52 nbm = self.notebook_manager
52 53 name, path = nbm.named_notebook_path(notebook_path)
54 if name != None:
55 name = quote(name)
53 56 if path == None:
54 57 project = self.project + '/' + name
55 58 else:
@@ -53,7 +53,7 class ProjectPathDashboardHandler(IPythonHandler):
53 53 project=project,
54 54 project_component=project.split('/'),
55 55 notebook_path=path,
56 notebook_name=name))
56 notebook_name=quote(name)))
57 57
58 58
59 59 class TreeRedirectHandler(IPythonHandler):
General Comments 0
You need to be logged in to leave comments. Login now