Leftover name->url_name fixes

This commit is contained in:
Victor Shnayder
2012-08-03 14:45:43 -04:00
parent 0b2069c619
commit 94e24c1626
3 changed files with 17 additions and 16 deletions

View File

@@ -87,8 +87,9 @@ def path_to_location(modulestore, location, course_name=None):
n = len(path)
course_id = CourseDescriptor.location_to_id(path[0])
chapter = path[1].url_name if n > 1 else None
section = path[2].url_name if n > 2 else None
# pull out the location names
chapter = path[1].name if n > 1 else None
section = path[2].name if n > 2 else None
# TODO (vshnayder): not handling position at all yet...
position = None