constance

Scripts for generating (an earlier obsolete version of) my personal web site
git clone https://code.djc.id.au/git/constance/
commit a68c8424cbd762bda3d104d8eed17fcf04c73f63
parent e7eeabe3067c9fe2b881e975331772d73f6b8e37
Author: Dan Callaghan <djc@djc.id.au>
Date:   Sat, 20 Sep 2008 21:35:22 +1000

oops

Diffstat:
Mapp.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app.py b/app.py
@@ -95,11 +95,11 @@ class Constance(object):
     def error_response(self, error):
         # XXX should probably just use real templates here ...
         body = u"""<html><head><title>%s - %s</title>
-                <link rel="stylesheet" type="text/css" href="/static/css/common.css" />
+                <link rel="stylesheet" type="text/css" href="%s/static/css/common.css" />
                 </head><body><div id="contentwrapper"><div id="content">
                 <h2>%s</h2><p>%s</p></div></div></body></html>""" % (
                 error.status, self.config.getunicode('global', 'name'), 
-                error.status, error.message)
+                self.environ['SCRIPT_NAME'], error.status, error.message)
         self.start(error.status, [('Content-type', 'text/html')] + error.headers)
         return iter([body.encode(self.encoding)])