>
> How about this: can I raise HTTP 200 from a model, and supply a simple
> string response?
>
I do this in one of my web2py apps and it works fine.
+1
On Saturday, 2 June 2012 17:35:29 UTC-5, Anthony wrote:
>
> How about this: can I raise HTTP 200 from a model, and supply a simple
>> string response?
>>
>
> I believe that should work.
>
> Anthony
>
>
> How about this: can I raise HTTP 200 from a model, and supply a simple
> string response?
>
I believe that should work.
Anthony
On Jun 2, 2012, at 3:10 PM, Massimo Di Pierro wrote:
> Not sure I understand. You can return from a function defined in a model but
> it will not shortcut the model.
I mean: return from the main line of the model itself. And you can't. I thought
an exec might be like a function call in that resp
Not sure I understand. You can return from a function defined in a model
but it will not shortcut the model.
On Saturday, 2 June 2012 16:53:14 UTC-5, Jonathan Lundell wrote:
>
> I can return from the middle of a model (to conditionally short-circuit
> it), right?
5 matches
Mail list logo