Do variable substitution for detailed solutions

This commit is contained in:
kimth
2012-09-13 15:12:18 -04:00
parent 021f86a9a8
commit b43da7463a

View File

@@ -265,7 +265,7 @@ class LoncapaProblem(object):
# include solutions from <solution>...</solution> stanzas
for entry in self.tree.xpath("//" + "|//".join(solution_types)):
answer = etree.tostring(entry)
if answer: answer_map[entry.get('id')] = answer
if answer: answer_map[entry.get('id')] = contextualize_text(answer, self.context)
log.debug('answer_map = %s' % answer_map)
return answer_map