Commit 09872a54 by Calen Pennington

Get rid of nested classes

parent 2a216dd3
......@@ -75,12 +75,12 @@ class Usage(namedtuple('Usage', 'id source policy children')):
@classmethod
def create_usage(cls, source):
xmodule = xmodule.get_xmodule
xmodule = xmodule.get_module(source)
return Usage(
uuid(),
xmodule.id,
xmodule.policy,
[Usage.create_usage(child) for child in xmodule.children]
[Usage.create_usage(child.id) for child in xmodule.children]
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment