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'

This commit is contained in:
Chris Dodge
2013-02-21 11:02:47 -05:00
parent 3fe6a74e76
commit 68a8587ed2

View File

@@ -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
}