On Tue, Dec 28, 2010 at 1:43 PM, 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
"Although exception types from the pyramid.httpexceptions module are in fact bona fide Python Exception types, the Pyramid view machinery expects them to be returned by a view callable rather than raised." Is raising HTTP exceptions still supported? Sometimes it provides better documentation or lets you jump out of a utility method without having to put extra code in surrounding loops in the caller. -- Mike Orr <[email protected]> -- 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.
