@@ -851,6 +851,17 @@ class RubricInput(InputTypeBase):
'''
descriptionxml=category[0]
optionsxml=category[1:]
scorexml=category[1]
score=None
ifscorexml.tag=='score':
score_text=scorexml.text
optionsxml=category[2:]
score=int(score_text)
self.has_score=True
# if we are missing the score tag and we are expecting one
elifself.has_score:
raiseException("[inputtypes.extract_category] Category {0} is missing a score".format(descriptionxml.text))
# parse description
ifdescriptionxml.tag!='description':
...
...
@@ -880,8 +891,10 @@ class RubricInput(InputTypeBase):
cur_points=cur_points+1
else:
raiseException("[extract_category]: missing points attribute. Cannot continue to auto-create points values after a points value is explicitly dfined.")
<p>The highlighted selection matches how the grader feels you performed in each category.</p>
% if view_only and has_score:
<p>This is the rubric that was used to grade your submission.The highlighted selection matches how the grader feels you performed in each category.</p>
% elif view_only:
<p>Use the below rubric to rate this submission.</p>
% else:
<p>Select the criteria you feel best represents this submission in each category.</p>