From 476e6c7b3b182795d827680f6b48049464f8d45c Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Fri, 11 Jan 2013 11:57:41 -0500 Subject: [PATCH] need to add the depth parameter to the DraftMongoStore implementation of get_instance --- common/lib/xmodule/xmodule/modulestore/draft.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/lib/xmodule/xmodule/modulestore/draft.py b/common/lib/xmodule/xmodule/modulestore/draft.py index 5fbf05ed9b..5ad663cec2 100644 --- a/common/lib/xmodule/xmodule/modulestore/draft.py +++ b/common/lib/xmodule/xmodule/modulestore/draft.py @@ -59,15 +59,15 @@ class DraftModuleStore(ModuleStoreBase): except ItemNotFoundError: return wrap_draft(super(DraftModuleStore, self).get_item(location, depth)) - def get_instance(self, course_id, location): + def get_instance(self, course_id, location, depth=0): """ Get an instance of this location, with policy for course_id applied. TODO (vshnayder): this may want to live outside the modulestore eventually """ try: - return wrap_draft(super(DraftModuleStore, self).get_instance(course_id, as_draft(location))) + return wrap_draft(super(DraftModuleStore, self).get_instance(course_id, as_draft(location), depth=depth)) except ItemNotFoundError: - return wrap_draft(super(DraftModuleStore, self).get_instance(course_id, location)) + return wrap_draft(super(DraftModuleStore, self).get_instance(course_id, location, depth=depth)) def get_items(self, location, depth=0): """