Merge pull request #1636 from MITx/feature/brian/htmlbook

Initial implementation of htmlbook.
This commit is contained in:
David Ormsbee
2013-03-11 11:38:46 -07:00
6 changed files with 221 additions and 5 deletions

View File

@@ -356,7 +356,14 @@ class CourseDescriptor(SequenceDescriptor):
"""
Return the pdf_textbooks config, as a python object, or None if not specified.
"""
return self.metadata.get('pdf_textbooks')
return self.metadata.get('pdf_textbooks', [])
@property
def html_textbooks(self):
"""
Return the html_textbooks config, as a python object, or None if not specified.
"""
return self.metadata.get('html_textbooks', [])
@tabs.setter
def tabs(self, value):