##// END OF EJS Templates
Fix nb name truncating at first period in filename
Kent Inverarity -
Show More
@@ -152,7 +152,7 b' class NotebookManager(LoggingConfigurable):'
152 except:
152 except:
153 raise web.HTTPError(500, u'Unreadable JSON notebook.')
153 raise web.HTTPError(500, u'Unreadable JSON notebook.')
154 # Always use the filename as the notebook name.
154 # Always use the filename as the notebook name.
155 nb.metadata.name = os.path.split(path)[-1].split(u'.')[0]
155 nb.metadata.name = u'.'.join(os.path.split(path)[-1].split(u'.')[:-1])
156 return last_modified, nb
156 return last_modified, nb
157
157
158 def save_new_notebook(self, data, name=None, format=u'json'):
158 def save_new_notebook(self, data, name=None, format=u'json'):
General Comments 0
You need to be logged in to leave comments. Login now