[LON-CAPA-cvs] cvs: loncom /homework/templates CustomResponse.problem

albertel lon-capa-cvs-allow@mail.lon-capa.org
Fri, 30 Mar 2007 20:10:10 -0000


albertel		Fri Mar 30 16:10:10 2007 EDT

  Modified files:              
    /loncom/homework/templates	CustomResponse.problem 
  Log:
  - correct the example to use the proper return codes
  
  
Index: loncom/homework/templates/CustomResponse.problem
diff -u loncom/homework/templates/CustomResponse.problem:1.1 loncom/homework/templates/CustomResponse.problem:1.2
--- loncom/homework/templates/CustomResponse.problem:1.1	Tue Jul 18 13:24:39 2006
+++ loncom/homework/templates/CustomResponse.problem	Fri Mar 30 16:10:09 2007
@@ -3,7 +3,7 @@
   <customresponse answerdisplay="something near 90 or -90">
     <answer type="loncapa/perl">
 # We do not want a vector
-if ($submission=~/\,/) { return 'ANS_CNT_NOT_MATCH'; }
+if ($submission=~/\,/) { return 'EXTRA_ANSWER'; }
 # No units needed
 if ($submission=~/^\d+\s+\w+$/) { return 'UNIT_NOTNEEDED'; }
 # Need a numerical answer here