Moving the 'id' prefix back into content_parser where it exists

This commit is contained in:
Calen Pennington
2012-05-25 11:04:05 -04:00
parent dea0d28ace
commit 1b5a9bc547
2 changed files with 2 additions and 2 deletions

View File

@@ -118,7 +118,7 @@ def id_tag(course):
new_id = default_ids[elem.tag] + new_id
elem.set('id', new_id)
else:
elem.set('id', fasthash(etree.tostring(elem)))
elem.set('id', "id"+fasthash(etree.tostring(elem)))
def propogate_downward_tag(element, attribute_name, parent_attribute = None):
''' This call is to pass down an attribute to all children. If an element