From: Greg Price Date: Tue, 5 Aug 2008 03:00:03 +0000 (-0400) Subject: configurize web templates X-Git-Tag: sipb-xen-www/3.11~18 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/b001dd5804c18377b497d87ddf23138282ef2690 configurize web templates svn path=/trunk/packages/sipb-xen-www/; revision=866 --- 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)