Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 2451

Show
Ignore:
Timestamp:
06/14/09 23:56:07
Author:
visteya
Message:

correct the docstring for Request.error_page, which claimed that the callable had to return a string. returning an iterable of strings works now with the fix in r2450.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/python3/cherrypy/_cprequest.py

    r2448 r2451  
    427427    If a callable is provided, it will be called by default with keyword  
    428428    arguments 'status', 'message', 'traceback', and 'version', as for a 
    429     string-formatting template. The callable must return a string which 
    430     will be set to response.body. It may also override headers or perform 
    431     any other processing. 
     429    string-formatting template. The callable must return a string or iterable of 
     430    strings which will be set to response.body. It may also override headers or 
     431    perform any other processing. 
    432432     
    433433    If no entry is given for an error code, and no 'default' entry exists, 

Hosted by WebFaction

Log in as guest/cpguest to create tickets