diff options
author | thejimmyg <devnull@localhost> | 2006-03-05 18:51:31 +0000 |
---|---|---|
committer | thejimmyg <devnull@localhost> | 2006-03-05 18:51:31 +0000 |
commit | e974828c84a8581a4af523d5b1fdb9a0ff345c28 (patch) | |
tree | 4534ac0ace705db5944e33336e24cfbafffe74b9 /paste/errordocument.py | |
parent | aa4e59eb28d2bfb257cf9a4d8e972dc381bd1005 (diff) | |
download | paste-e974828c84a8581a4af523d5b1fdb9a0ff345c28.tar.gz |
Update docstrings in errordocument.py0.5
Diffstat (limited to 'paste/errordocument.py')
-rw-r--r-- | paste/errordocument.py | 6 |
1 files changed, 3 insertions, 3 deletions
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): |