Commit 64e90768 by gradyward

Changed the call mechanism from examples to examples_xml to differentiate for validation

parent fdf7d331
......@@ -89,7 +89,9 @@ EDITOR_UPDATE_SCHEMA = Schema({
})
]
})
]
],
'examples_xml': utf8_validator,
'algorithm_id': All(utf8_validator, In(['ease','fake']))
})
],
Required('editor_assessments_order'): [
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -392,13 +392,15 @@ OpenAssessment.EditExampleBasedAssessmentView.prototype = {
Example usage:
>>> editTrainingView.description();
{
examples: "XML DEFINITION HERE"
examples_xml: "XML DEFINITION HERE",
algorithm: 'ease'
}
**/
description: function() {
return {
examples: this.exampleDefinitions()
examples_xml: this.exampleDefinitions(),
algorithm_id: 'ease'
};
},
......
......@@ -270,6 +270,17 @@
height: 40px;
}
#ai_training_examples{
margin: 5px 20px 10px 10px;
height: 300px;
width: Calc(100% - 20px);
resize: none;
font: inherit;
line-height: 110%;
font-size: 80%;
padding: 5px 10px;
}
.openassessment_assessment_module_settings_editor{
padding: 0 15px 0 0;
margin: 10px;
......
......@@ -167,7 +167,7 @@ class StudioMixin(object):
# definition we expect for validation and storing.
for assessment in data['assessments']:
if assessment['name'] == 'example-based-assessment':
assessment['examples'] = parse_examples_from_xml_str(assessment['examples'])
assessment['examples'] = parse_examples_from_xml_str(assessment['examples_xml'])
xblock_validator = validator(self)
success, msg = xblock_validator(
......
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