From e974828c84a8581a4af523d5b1fdb9a0ff345c28 Mon Sep 17 00:00:00 2001 From: thejimmyg Date: Sun, 5 Mar 2006 18:51:31 +0000 Subject: Update docstrings in errordocument.py --- paste/errordocument.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'paste/errordocument.py') diff --git a/paste/errordocument.py b/paste/errordocument.py index c0bdeac..1f7f52a 100644 --- a/paste/errordocument.py +++ b/paste/errordocument.py @@ -85,7 +85,7 @@ def forward(app, codes): app = RecursiveMiddleware(app) # Set up the error document forwarding - from paste.error_document import forward + from paste.errordocument import forward app = forward(app, codes={404:'/error404.html'}) """ @@ -135,7 +135,7 @@ def custom_forward(app, mapper, global_conf={}, **kw): If you wanted to write an application to handle all your error docuemnts in a consitent way you might do this:: - from paste.error_document import custom_forward + from paste.errordocument import custom_forward from paste.recursive import RecursiveMiddleware from urllib import urlencode @@ -162,7 +162,7 @@ def custom_forward(app, mapper, global_conf={}, **kw): Example ------- - For example the ``paste.error_document.forward`` middleware actaully + For example the ``paste.errordocument.forward`` middleware actaully uses ``custom_forward``. It looks like this:: def forward(app, codes): -- cgit v1.2.1