Unstable commit; syncing computers

This commit is contained in:
Piotr Mitros
2012-05-31 21:12:08 -04:00
parent 97c6a26c2b
commit 98d8f4b55b
9 changed files with 14 additions and 12 deletions

View File

@@ -4,7 +4,7 @@ from lxml import etree
from mitxmako.shortcuts import render_to_string
from x_module import XModule
from x_module import XModule, XModuleDescriptor
# HACK: This shouldn't be hard-coded to two types
# OBSOLETE: This obsoletes 'type'
@@ -57,7 +57,7 @@ class Module(XModule):
titles = ["\n".join([i.get("name").strip() for i in e.iter() if i.get("name") != None]) \
for e in self.xmltree]
self.contents = self.rendered_children(self)
self.contents = self.rendered_children()
for contents, title in zip(self.contents, titles):
contents['title'] = title