From 7e3e549af3852c87697885df4b60daa8b63b370f Mon Sep 17 00:00:00 2001 From: bbangert Date: Sat, 2 Sep 2006 23:40:11 +0000 Subject: Adding code-block directive to Python code samples. --- paste/errordocument.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'paste/errordocument.py') 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 -- cgit v1.2.1