Fix rubric code, make sure it is removed properly.

This commit is contained in:
Vik Paruchuri
2012-11-20 13:57:46 -05:00
committed by Victor Shnayder
parent d71445f9d8
commit 1e194f0e1a
2 changed files with 3 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ global_context = {'random': random,
'miller': chem.miller}
# These should be removed from HTML output, including all subelements
html_problem_semantics = ["codeparam", "responseparam", "answer", "script", "hintgroup", "openendedparam"]
html_problem_semantics = ["codeparam", "responseparam", "answer", "script", "hintgroup", "openendedparam","openendedrubric"]
log = logging.getLogger('mitx.' + __name__)

View File

@@ -1846,8 +1846,8 @@ class OpenEndedResponse(LoncapaResponse):
#Look for tag named openendedparam that encapsulates all grader settings
oeparam = self.xml.find('openendedparam')
prompt=self.xml.find('prompt')
rubric=self.xml.find('rubric')
self._parse_openendedresponse_xml(oeparam,prompt)
rubric=self.xml.find('openendedrubric')
self._parse_openendedresponse_xml(oeparam,prompt,rubric)
def stringify_children(self,node,strip_tags=True):
"""