Textbook browser

This commit is contained in:
Piotr Mitros
2011-12-29 09:51:32 -05:00
parent a30f1a1e99
commit fccfbb7d2f
4 changed files with 27 additions and 1 deletions

View File

@@ -115,7 +115,7 @@ class LoncapaModule(XModule):
dom2 = etree.fromstring(xml)
self.explanation=content_parser.item(dom2.xpath('/problem/@explain'))
self.explanation=content_parser.item(dom2.xpath('/problem/@explain'), default="closed")
self.explain_available=content_parser.item(dom2.xpath('/problem/@explain_available'))
self.due_date=content_parser.item(dom2.xpath('/problem/@due'))