fix names of notebooks for download/save

was using notebook.get('name') instead of notebook.metadata.get('name'),
where the name is actually stored.  The result was that all downloaded notebooks were called 'notebook'.

closes #2227
This commit is contained in:
MinRK 2012-08-30 14:24:44 -07:00
parent 45f79e0509
commit a9db0585d6

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):