From 78a2959540790b077b11bd62e5e48e611f85a3a2 Mon Sep 17 00:00:00 2001 From: Mat Peterson Date: Mon, 30 Jun 2014 20:18:36 +0000 Subject: [PATCH] Removed some definition_key references --- common/lib/xmodule/xmodule/modulestore/search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lib/xmodule/xmodule/modulestore/search.py b/common/lib/xmodule/xmodule/modulestore/search.py index 666a6945b3..eba68b8817 100644 --- a/common/lib/xmodule/xmodule/modulestore/search.py +++ b/common/lib/xmodule/xmodule/modulestore/search.py @@ -56,7 +56,7 @@ def path_to_location(modulestore, usage_key): parent = modulestore.get_parent_location(next_usage) # print 'Processing loc={0}, path={1}'.format(next_usage, path) - if next_usage.definition_key.block_type == "course": + if next_usage.block_type == "course": # Found it! path = (next_usage, path) return flatten(path) @@ -92,7 +92,7 @@ def path_to_location(modulestore, usage_key): if n > 3: position_list = [] for path_index in range(2, n - 1): - category = path[path_index].definition_key.block_type + category = path[path_index].block_type if category == 'sequential' or category == 'videosequence': section_desc = modulestore.get_item(path[path_index]) child_locs = [c.location for c in section_desc.get_children()]