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