Merge pull request #2365 from minrk/nbname

fix names of notebooks for download/save from the browser, so that instead of being called 'notebook' the resulting file has the actual notebook name.

closes #2227
This commit is contained in:
Fernando Perez 2012-08-30 20:36:39 -07:00
commit 4587c15f40

View File

@ -117,7 +117,7 @@ class NotebookManager(LoggingConfigurable):
# should match the Python in-memory format.
kwargs['split_lines'] = False
data = current.writes(nb, format, **kwargs)
name = nb.get('name','notebook')
name = nb.metadata.get('name','notebook')
return last_modified, name, data
def read_notebook_object(self, notebook_id):