On Tuesday, December 28, 2010, Chris McDonough <[email protected]> wrote:
> On Tue, 2010-12-28 at 22:35 +0100, Eric Lemoine wrote:
>> Hello
>>
>> Does Pyramid provide a helper for issuing redirects? I've found
>> nothing in the docs about that. Maybe pyramid_routehelper will provide
>> that?
>
> Hi Eric,
>
> http://docs.pylonshq.com/pyramid/dev/narr/views.html#using-a-view-callable-to-do-an-http-redirect

Thanks. I'm used to Pylons' redirect function, so I didn't think about
looking at pyramid.httpexceptions. Until now I've used
Response(status=302, location=...), but feared that my Response misses
things. I should look at the code of HTTPFound.

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to