Mercurial > p > roundup > code
comparison roundup/cgi/client.py @ 1078:344bad728d10
more tweakage of help display and style issues
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 09 Sep 2002 04:43:10 +0000 |
| parents | 72d622b9bffd |
| children | a625adcd6254 |
comparison
equal
deleted
inserted
replaced
| 1077:6b0d9ec988b8 | 1078:344bad728d10 |
|---|---|
| 1 # $Id: client.py,v 1.22 2002-09-09 03:20:09 richard Exp $ | 1 # $Id: client.py,v 1.23 2002-09-09 04:43:10 richard Exp $ |
| 2 | 2 |
| 3 __doc__ = """ | 3 __doc__ = """ |
| 4 WWW request handler (also used in the stand-alone server). | 4 WWW request handler (also used in the stand-alone server). |
| 5 """ | 5 """ |
| 6 | 6 |
| 11 from roundup.i18n import _ | 11 from roundup.i18n import _ |
| 12 | 12 |
| 13 from roundup.cgi.templating import getTemplate, HTMLRequest, NoTemplate | 13 from roundup.cgi.templating import getTemplate, HTMLRequest, NoTemplate |
| 14 from roundup.cgi import cgitb | 14 from roundup.cgi import cgitb |
| 15 | 15 |
| 16 from PageTemplates import PageTemplate | 16 from roundup.cgi.PageTemplates import PageTemplate |
| 17 | 17 |
| 18 class Unauthorised(ValueError): | 18 class Unauthorised(ValueError): |
| 19 pass | 19 pass |
| 20 | 20 |
| 21 class NotFound(ValueError): | 21 class NotFound(ValueError): |
| 282 self.template = 'index' | 282 self.template = 'index' |
| 283 | 283 |
| 284 # see if we have a template override | 284 # see if we have a template override |
| 285 if self.form.has_key(':template'): | 285 if self.form.has_key(':template'): |
| 286 self.template = self.form[':template'].value | 286 self.template = self.form[':template'].value |
| 287 | |
| 288 | 287 |
| 289 # see if we were passed in a message | 288 # see if we were passed in a message |
| 290 if self.form.has_key(':ok_message'): | 289 if self.form.has_key(':ok_message'): |
| 291 self.ok_message.append(self.form[':ok_message'].value) | 290 self.ok_message.append(self.form[':ok_message'].value) |
| 292 if self.form.has_key(':error_message'): | 291 if self.form.has_key(':error_message'): |
