From b001dd5804c18377b497d87ddf23138282ef2690 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Mon, 4 Aug 2008 23:00:03 -0400 Subject: [PATCH] configurize web templates svn path=/trunk/packages/sipb-xen-www/; revision=866 --- code/main.py | 1 + code/templates/info.tmpl | 2 +- code/templates/list.tmpl | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/code/main.py b/code/main.py index 8990e51..bb863c1 100755 --- a/code/main.py +++ b/code/main.py @@ -85,6 +85,7 @@ def makeErrorPre(old, addition): return '

STDERR:

' + str(addition) + '
' Template.database = database +Template.config = config Template.helppopup = staticmethod(helppopup) Template.err = None diff --git a/code/templates/info.tmpl b/code/templates/info.tmpl index 2c3d28c..9346129 100644 --- a/code/templates/info.tmpl +++ b/code/templates/info.tmpl @@ -87,7 +87,7 @@ $errorRow('administrator', $err) $errorRow('contact', $err) #end filter #if not $on - Machine Name: + Machine Name:.${config.dns.domains[0]} #filter None $errorRow('name', $err) #end filter diff --git a/code/templates/list.tmpl b/code/templates/list.tmpl index 89a75d8..63dfa38 100644 --- a/code/templates/list.tmpl +++ b/code/templates/list.tmpl @@ -25,7 +25,7 @@ VM List #end filter Name - .xvm.mit.edu + .${config.dns.domains[0]} #filter None $errorRow('name', $err) -- 1.7.9.5