mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-20 07:54:01 +01:00
config also as template
This commit is contained in:
+5
-7
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user