Commit d18f4222 by Chris Dodge

fix crash of custom tags when running against Mongo datastores. Mongo's 'system'…

fix crash of custom tags when running against Mongo datastores. Mongo's 'system' does not have a course_id attribute defined, which makes it asymmetric to XmlFilesystem store
parent f5d07b15
...@@ -51,6 +51,9 @@ class CachingDescriptorSystem(MakoDescriptorSystem): ...@@ -51,6 +51,9 @@ class CachingDescriptorSystem(MakoDescriptorSystem):
self.modulestore = modulestore self.modulestore = modulestore
self.module_data = module_data self.module_data = module_data
self.default_class = default_class self.default_class = default_class
# cdodge: other Systems have a course_id attribute defined. To keep things consistent, let's
# define an attribute here as well, even though it's None
self.course_id = None
def load_item(self, location): def load_item(self, location):
location = Location(location) location = Location(location)
......
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