From 7d3f14b76b9716c65d76bffaa33afda8a907c0c4 Mon Sep 17 00:00:00 2001 From: Pierre Padrixe Date: Thu, 19 Jun 2014 16:19:18 +0200 Subject: 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 --- docs/source/routing.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') 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: -- cgit v1.2.1