Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
Added docs for lock keyword arg to RESPONSE.redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Sep 18, 2000
1 parent 35b9579 commit dffccdc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions help/Response.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,14 @@ def appendHeader(self, name, value, delimiter=","):
'''

def redirect(self, location):
def redirect(self, location, lock=0):
"""
Cause a redirection without raising an error
Cause a redirection without raising an error. If the "lock"
keyword argument is passed with a true value, then the HTTP
redirect response code will not be changed even if an error
occurs later in request processing (after redirect() has
been called).
Permission -- Always available
Expand Down

0 comments on commit dffccdc

Please sign in to comment.