diff options
author | bbangert <devnull@localhost> | 2006-09-02 23:40:11 +0000 |
---|---|---|
committer | bbangert <devnull@localhost> | 2006-09-02 23:40:11 +0000 |
commit | 7e3e549af3852c87697885df4b60daa8b63b370f (patch) | |
tree | 720145c564522be8df81c74e4943ce685b94dd7c /paste/errordocument.py | |
parent | e944374d649a29449b4a3266a485eb5ca31ecf78 (diff) | |
download | paste-7e3e549af3852c87697885df4b60daa8b63b370f.tar.gz |
Adding code-block directive to Python code samples.
Diffstat (limited to 'paste/errordocument.py')
-rw-r--r-- | paste/errordocument.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/paste/errordocument.py b/paste/errordocument.py index 16b091c..731449f 100644 --- a/paste/errordocument.py +++ b/paste/errordocument.py @@ -108,7 +108,9 @@ class StatusBasedForward: Here is an example where a ``404 File Not Found`` status response would be redirected to the URL ``/error?code=404&message=File%20Not%20Found``. This could be useful for passing the status code and message into another - application to display an error document:: + application to display an error document: + + .. code-block:: Python from paste.errordocument import StatusBasedForward from paste.recursive import RecursiveMiddleware |