From 60977b0e74026dc69c7afff80941007576f68f90 Mon Sep 17 00:00:00 2001 From: ichuang Date: Thu, 2 May 2013 18:56:15 -0400 Subject: [PATCH 1/8] 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): From ec79ebd4a75f0bb990d5f47d4d05dbe45b15bff1 Mon Sep 17 00:00:00 2001 From: David Baumgold Date: Wed, 8 May 2013 09:11:56 -0400 Subject: [PATCH 2/8] Updated Backbone.js and Underscore.js Backbone 1.0.0, Underscore 1.4.4 --- common/static/js/vendor/backbone-min.js | 46 ++--------------------- common/static/js/vendor/underscore-min.js | 2 +- 2 files changed, 5 insertions(+), 43 deletions(-) diff --git a/common/static/js/vendor/backbone-min.js b/common/static/js/vendor/backbone-min.js index d4b0314abe..fe80cd78df 100644 --- a/common/static/js/vendor/backbone-min.js +++ b/common/static/js/vendor/backbone-min.js @@ -1,42 +1,4 @@ -// Backbone.js 0.9.10 - -// (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc. -// Backbone may be freely distributed under the MIT license. -// For all details and documentation: -// http://backbonejs.org -(function(){var n=this,B=n.Backbone,h=[],C=h.push,u=h.slice,D=h.splice,g;g="undefined"!==typeof exports?exports:n.Backbone={};g.VERSION="0.9.10";var f=n._;!f&&"undefined"!==typeof require&&(f=require("underscore"));g.$=n.jQuery||n.Zepto||n.ender;g.noConflict=function(){n.Backbone=B;return this};g.emulateHTTP=!1;g.emulateJSON=!1;var v=/\s+/,q=function(a,b,c,d){if(!c)return!0;if("object"===typeof c)for(var e in c)a[b].apply(a,[e,c[e]].concat(d));else if(v.test(c)){c=c.split(v);e=0;for(var f=c.length;e< -f;e++)a[b].apply(a,[c[e]].concat(d))}else return!0},w=function(a,b){var c,d=-1,e=a.length;switch(b.length){case 0:for(;++d=b);this.root=("/"+this.root+"/").replace(I,"/");b&&this._wantsHashChange&&(this.iframe=g.$('