1. Walter Cruz
  2. pylons-pt_BR


Ben Bangert  committed 03552c0

Fix abort doc regarding redirect.

  • Participants
  • Parent commits fb99abc
  • Branches trunk

Comments (0)

Files changed (1)

File pylons/controllers/util.py

View file
 def abort(status_code=None, detail="", headers=None, comment=None):
     """Aborts the request immediately by returning an HTTP exception
-    In the event that the status_code is a 300 series error, the detail
-    attribute will be used as the Location header should one not be
-    specified in the headers attribute.
+    For 300 series, a headers dict will need to be supplied with the
+    appropriate 'Location' set for the redirect.
     exc = status_map[status_code](detail=detail, headers=headers,