This commit is contained in:
Ernie Park
2012-01-09 14:29:11 -05:00
11 changed files with 56 additions and 533 deletions

View File

@@ -13,7 +13,7 @@ def strip_dict(d):
(type(d[k]) == float or type(d[k]) == int) ])
return d
class LoncapaProblem():
class LoncapaProblem(object):
def get_state(self):
''' Stored per-user session data neeeded to:
1) Recreate the problem

View File

@@ -1,4 +1,4 @@
class XModule:
class XModule(object):
''' Implements a generic learning module.
Initialized on access with __init__, first time with state=None, and
then with state