config also as template

This commit is contained in:
Paul Busch
2011-07-10 22:48:26 +02:00
parent aa51a08f20
commit ab73c797f1
2 changed files with 34 additions and 35 deletions
+5 -7
View File
@@ -311,13 +311,11 @@ class Headphones:
history.exposed = True
def config(self):
page = [templates._header]
page.append(templates._logobar)
page.append(templates._nav)
page.append(config.form)
page.append(templates._footer)
return page
filename = os.path.join(self.templatePath,"config.tmpl")
template = Template(file=filename)
template.rootPath = "."
template.appPath = "."
return str(template)
config.exposed = True