Commit 386ab10e by Vik Paruchuri

Apparently meld is weird at indenting

parent a09a4feb
...@@ -292,12 +292,11 @@ def edit_unit(request, location): ...@@ -292,12 +292,11 @@ def edit_unit(request, location):
# check if there are any advanced modules specified in the course policy # check if there are any advanced modules specified in the course policy
advanced_component_types = ADVANCED_COMPONENT_TYPES advanced_component_types = ADVANCED_COMPONENT_TYPES
course_metadata = CourseMetadata.fetch(course.location) course_metadata = CourseMetadata.fetch(course.location)
course_advanced_keys = course_metadata.get(ADVANCED_COMPONENT_POLICY_KEY, {}) course_advanced_keys = course_metadata.get(ADVANCED_COMPONENT_POLICY_KEY, {})
if isinstance(course_advanced_keys,dict): if isinstance(course_advanced_keys,dict):
advanced_component_types.update(course_advanced_keys) advanced_component_types.update(course_advanced_keys)
else: else:
log.error("Improper format for course advanced keys! {0}".format(course_advanced_keys)) log.error("Improper format for course advanced keys! {0}".format(course_advanced_keys))
templates = modulestore().get_items(Location('i4x', 'edx', 'templates')) templates = modulestore().get_items(Location('i4x', 'edx', 'templates'))
for template in templates: for template in templates:
......
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