Fix rubric code, make sure it is removed properly.
This commit is contained in:
committed by
Victor Shnayder
parent
d71445f9d8
commit
1e194f0e1a
@@ -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__)
|
||||
|
||||
|
||||
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user