From 60977b0e74026dc69c7afff80941007576f68f90 Mon Sep 17 00:00:00 2001 From: ichuang Date: Thu, 2 May 2013 18:56:15 -0400 Subject: [PATCH] formularesponse requires the "samples" attribute; enforce this, instead of just failing with an obscure error --- common/lib/capa/capa/responsetypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/capa/capa/responsetypes.py b/common/lib/capa/capa/responsetypes.py index 5b1b46d858..54d8e10308 100644 --- a/common/lib/capa/capa/responsetypes.py +++ b/common/lib/capa/capa/responsetypes.py @@ -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):