Re: [web2py] Re: return from model

2012-06-03 Thread weheh
> > 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.

Re: [web2py] Re: return from model

2012-06-02 Thread Massimo Di Pierro
+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 >

Re: [web2py] Re: return from model

2012-06-02 Thread Anthony
> > How about this: can I raise HTTP 200 from a model, and supply a simple > string response? > I believe that should work. Anthony

Re: [web2py] Re: return from model

2012-06-02 Thread Jonathan Lundell
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

[web2py] Re: return from model

2012-06-02 Thread Massimo Di Pierro
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?