Commit b2f23181 by Calen Pennington Committed by Matthew Mongeau

Change name of XModuleSystem to DescriptorSystem at usage sites

parent 82898978
import pymongo import pymongo
from . import ModuleStore, Location from . import ModuleStore, Location
from .exceptions import ItemNotFoundError, InsufficientSpecificationError from .exceptions import ItemNotFoundError, InsufficientSpecificationError
from xmodule.x_module import XModuleDescriptor, XModuleSystem from xmodule.x_module import XModuleDescriptor, DescriptorSystem
class MongoModuleStore(ModuleStore): class MongoModuleStore(ModuleStore):
...@@ -45,7 +45,7 @@ class MongoModuleStore(ModuleStore): ...@@ -45,7 +45,7 @@ class MongoModuleStore(ModuleStore):
if item is None: if item is None:
raise ItemNotFoundError(location) raise ItemNotFoundError(location)
return XModuleDescriptor.load_from_json(item, XModuleSystem(self.get_item)) return XModuleDescriptor.load_from_json(item, DescriptorSystem(self.get_item))
def create_item(self, location, editor): def create_item(self, location, editor):
""" """
......
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