diff roundup/cgi/client.py @ 3554:5e70726a86dd

fixed schema migration problem when Class keys were removed fixed lookup of config in all-hell's-broken-loose cgi.Client error handler fixed metakit use of is_stopword
author Richard Jones <richard@users.sourceforge.net>
date Thu, 09 Feb 2006 23:53:11 +0000
parents 3c70ab03c917
children ea471747d5aa
line wrap: on
line diff
--- a/roundup/cgi/client.py	Thu Feb 09 04:46:22 2006 +0000
+++ b/roundup/cgi/client.py	Thu Feb 09 23:53:11 2006 +0000
@@ -1,4 +1,4 @@
-# $Id: client.py,v 1.221 2006-02-08 05:33:11 a1s Exp $
+# $Id: client.py,v 1.222 2006-02-09 23:53:11 richard Exp $
 
 """WWW request handler (also used in the stand-alone server).
 """
@@ -46,8 +46,8 @@
         return match.group(1)
     return '&lt;%s&gt;'%match.group(2)
 
-error_message = ""'''<html><head><title>Roundup error</title></head><body>
-<h1>An error has occurred</h1>
+error_message = ""'''<html><head><title>An error has occurred</title></head>
+<body><h1>An error has occurred</h1>
 <p>A problem was encountered processing your request.
 The tracker maintainers have been notified of the problem.</p>
 </body></html>'''
@@ -308,7 +308,7 @@
             self.error_message.append(self._('Form Error: ') + str(e))
             self.write_html(self.renderContext())
         except:
-            if self.db.config.WEB_DEBUG:
+            if self.instance.config.WEB_DEBUG:
                 self.write_html(cgitb.html(i18n=self.translator))
             else:
                 self.mailer.exception_message()

Roundup Issue Tracker: http://roundup-tracker.org/