On Thu, Jun 19, 2008 at 3:29 PM, Ian Bicking <[EMAIL PROTECTED]> wrote:
> Maybe something like this:
>
> class HTTP_OK(HTTPException):
>   code = 200
>   message = 'OK'
>
> raise HTTP_OK('some message')
>
> A little weird.  But a good way to break out of the decorators.

Hey Ian,

I've needed that before.  I remember that the situation was pretty
strange.  I ended up coding something just like that.

-jj

-- 
I, for one, welcome our new Facebook overlords!
http://jjinux.blogspot.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