Commit 34541b5e by Calen Pennington

Make a list of textbooks, don't just store a single one

parent 261948f3
...@@ -102,7 +102,7 @@ class CourseDescriptor(SequenceDescriptor): ...@@ -102,7 +102,7 @@ class CourseDescriptor(SequenceDescriptor):
def definition_from_xml(cls, xml_object, system): def definition_from_xml(cls, xml_object, system):
textbooks = [] textbooks = []
for textbook in xml_object.findall("textbook"): for textbook in xml_object.findall("textbook"):
textbooks = (textbook.get('title'), textbook.get('book_url')) textbooks.append((textbook.get('title'), textbook.get('book_url')))
xml_object.remove(textbook) xml_object.remove(textbook)
#Load the wiki tag if it exists #Load the wiki tag if it exists
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment