formularesponse requires the "samples" attribute; enforce this,

instead of just failing with an obscure error
This commit is contained in:
ichuang
2013-05-02 18:56:15 -04:00
parent 22e147b2c9
commit 60977b0e74

View File

@@ -1783,7 +1783,7 @@ class FormulaResponse(LoncapaResponse):
response_tag = 'formularesponse'
hint_tag = 'formulahint'
allowed_inputfields = ['textline']
required_attributes = ['answer']
required_attributes = ['answer', 'samples']
max_inputfields = 1
def setup_response(self):