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

Changeset 2452

Show
Ignore:
Timestamp:
06/14/09 23:56:27
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 r2449.

Files:

Legend:

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

    r2447 r2452  
    429429    overriding HTTPError.set_response. 
    430430     
    431     If a callable is provided, it will be called by default with keyword  
     431    If a callable is provided, it will be called by default with keyword 
    432432    arguments 'status', 'message', 'traceback', and 'version', as for a 
    433     string-formatting template. The callable must return a string which 
    434     will be set to response.body. It may also override headers or perform 
    435     any other processing. 
     433    string-formatting template. The callable must return a string or iterable of 
     434    strings which will be set to response.body. It may also override headers or 
     435    perform any other processing. 
    436436     
    437437    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