Commit ca89ce73 by Lyla Fischer

fixed mysterious problem rendering issue

parent eb95ea9e
...@@ -97,7 +97,6 @@ class LoncapaProblem(object): ...@@ -97,7 +97,6 @@ class LoncapaProblem(object):
responder = response_types[response.tag](response, self.context) responder = response_types[response.tag](response, self.context)
responder.preprocess_response() responder.preprocess_response()
def get_state(self): def get_state(self):
''' Stored per-user session data neeeded to: ''' Stored per-user session data neeeded to:
1) Recreate the problem 1) Recreate the problem
...@@ -185,7 +184,7 @@ class LoncapaProblem(object): ...@@ -185,7 +184,7 @@ class LoncapaProblem(object):
tree=Element(problemtree.tag) tree=Element(problemtree.tag)
for item in problemtree: for item in problemtree:
subitems = self.extract_html(item) subitems = self.extract_html(item)
if len(subitems): if subitems is not None:
for subitem in subitems: for subitem in subitems:
tree.append(subitem) tree.append(subitem)
for (key,value) in problemtree.items(): for (key,value) in problemtree.items():
......
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