From 7cd4310c32a028a5c39b67390c240ed73572c4f9 Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Mon, 8 Apr 2013 12:12:23 -0400 Subject: [PATCH] extend the list of container module names to our comuputation of inherited metadata --- common/lib/xmodule/xmodule/modulestore/mongo.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/lib/xmodule/xmodule/modulestore/mongo.py b/common/lib/xmodule/xmodule/modulestore/mongo.py index dbc8b4506c..0ed93c9768 100644 --- a/common/lib/xmodule/xmodule/modulestore/mongo.py +++ b/common/lib/xmodule/xmodule/modulestore/mongo.py @@ -258,11 +258,11 @@ class MongoModuleStore(ModuleStoreBase): # get all collections in the course, this query should not return any leaf nodes # note this is a bit ugly as when we add new categories of containers, we have to add it here - query = { - '_id.org': location.org, - '_id.course': location.course, - '_id.category': {'$in': ['course', 'chapter', 'sequential', 'vertical']} - } + query = {'_id.org': location.org, + '_id.course': location.course, + '_id.category': {'$in': ['course', 'chapter', 'sequential', 'vertical', + 'wrapper', 'problemset', 'conditional']} + } # we just want the Location, children, and inheritable metadata record_filter = {'_id': 1, 'definition.children': 1}