In trunk now:
from=crud.upadate(...) # or crud.create(...)
if form.accepted: # form accepted
if form.deleted: # record deleted
On Sep 10, 7:44 am, mdipierro wrote:
> No but you can do:
>
> form=crus.create(...,onaccept=lambda form: do_something_with(form))
>
> but perhaps there should be a way
No but you can do:
form=crus.create(...,onaccept=lambda form: do_something_with(form))
but perhaps there should be a way to check
On Sep 10, 12:52 am, Álvaro J. Iradier wrote:
> Thanks Massimo.
>
> It's impossible to have better support than web2py, you and this
> community are impressing,
Thanks Massimo.
It's impossible to have better support than web2py, you and this
community are impressing, five stars!
So, assumming I'm doing other things between the crud.create and the
return:
def index():
form = crud.create(db.contents,message='Inserted')
... #other code
return dict
because you cannot ".accepts" a crud forms. It is implicit. You can do
def index():
form = crud.create(db.contents,message='Inserted')
return dict(form=form)
On Sep 9, 2:51 pm, Álvaro J. Iradier wrote:
> Hi, I think I found a problem (bug?) with crud.create and
> form.custom.end:
>
> I h
4 matches
Mail list logo