Moved extra settings into state. Added fs module for aux content

This commit is contained in:
Piotr Mitros
2012-05-07 20:13:30 -04:00
parent a0ecbca080
commit e1ac5e9f30
9 changed files with 49 additions and 33 deletions

View File

@@ -20,10 +20,9 @@ class Module(XModule):
def get_html(self):
return self.html
def __init__(self, xml, item_id, ajax_url=None, track_url=None, state=None, track_function=None, render_function = None):
XModule.__init__(self, xml, item_id, ajax_url, track_url, state, track_function, render_function)
def __init__(self, system, xml, item_id, state=None):
XModule.__init__(self, system, xml, item_id, state)
xmltree = etree.fromstring(xml)
filename = xmltree.tag
params = dict(xmltree.items())
# print params
self.html = render_to_string(filename, params, namespace = 'custom_tags')