summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Padrixe <pierre.padrixe@numergy.com>2014-06-19 16:19:18 +0200
committerPierre Padrixe <pierre.padrixe@numergy.com>2014-06-19 16:22:17 +0200
commit7d3f14b76b9716c65d76bffaa33afda8a907c0c4 (patch)
treeb1123db2002bf203412d6ff6a144dbd7fe5ffad7
parent0973690047cab04d79839eed0abfd383b62b4cf5 (diff)
downloadpecan-7d3f14b76b9716c65d76bffaa33afda8a907c0c4.tar.gz
Fix routing docs about "Interacting with the Request and Response Object"
pecan.response.text and pecan.response.status should be written instead of pecan.response.body and pecan.response.status_int Change-Id: Ie3f4011e3f299c77d464308cabfd2245ed01bb9f Closes-Bug: #1332101
-rw-r--r--docs/source/routing.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/source/routing.rst b/docs/source/routing.rst
index ec79305..ac74ba8 100644
--- a/docs/source/routing.rst
+++ b/docs/source/routing.rst
@@ -282,8 +282,8 @@ within Pecan controller code::
username = pecan.request.POST.get('username')
password = pecan.request.POST.get('password')
- pecan.response.status_int = 403
- pecan.response.body = 'Bad Login!'
+ pecan.response.status = 403
+ pecan.response.text = 'Bad Login!'
While Pecan abstracts away much of the need to interact with these objects
directly, there may be situations where you want to access them, such as: