From 68a8587ed2632681d4ffc45cdad579630b9e810f Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Thu, 21 Feb 2013 11:02:47 -0500 Subject: [PATCH] don't serialize weight out as an int - use a string. The code in capa-module.py expects a string and tries to convert to a float. So this impedence mismatch is causing a crash on import when importing empty strings for 'weight' or 'attempts' --- common/lib/xmodule/xmodule/xml_module.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/lib/xmodule/xmodule/xml_module.py b/common/lib/xmodule/xmodule/xml_module.py index 64c3aabbcc..773531c528 100644 --- a/common/lib/xmodule/xmodule/xml_module.py +++ b/common/lib/xmodule/xmodule/xml_module.py @@ -128,8 +128,7 @@ class XmlDescriptor(XModuleDescriptor): 'graded': bool_map, 'hide_progress_tab': bool_map, 'allow_anonymous': bool_map, - 'allow_anonymous_to_peers': bool_map, - 'weight': int_map + 'allow_anonymous_to_peers': bool_map }