##// END OF EJS Templates
Fixing XML notebook reader.
Brian E. Granger -
Show More
@@ -22,7 +22,8 b' from xml.etree import ElementTree as ET'
22
22
23 from .rwbase import NotebookReader, NotebookWriter
23 from .rwbase import NotebookReader, NotebookWriter
24 from .nbbase import (
24 from .nbbase import (
25 new_code_cell, new_text_cell, new_worksheet, new_notebook, new_output
25 new_code_cell, new_text_cell, new_worksheet, new_notebook, new_output,
26 new_metadata
26 )
27 )
27
28
28 #-----------------------------------------------------------------------------
29 #-----------------------------------------------------------------------------
@@ -174,8 +175,8 b' class XMLReader(NotebookReader):'
174 ws = new_worksheet(name=wsname,cells=cells)
175 ws = new_worksheet(name=wsname,cells=cells)
175 worksheets.append(ws)
176 worksheets.append(ws)
176
177
177 nb = new_notebook(name=nbname,worksheets=worksheets,author=nbauthor,
178 md = new_metadata(name=nbname)
178 email=nbemail,license=nblicense,saved=nbsaved,created=nbcreated)
179 nb = new_notebook(metadata=md,worksheets=worksheets)
179 return nb
180 return nb
180
181
181
182
General Comments 0
You need to be logged in to leave comments. Login now