[web2py] Re: Problem with crud.create and duplicate _formname

2010-09-10 Thread mdipierro
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

[web2py] Re: Problem with crud.create and duplicate _formname

2010-09-10 Thread mdipierro
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,

[web2py] Re: Problem with crud.create and duplicate _formname

2010-09-09 Thread Álvaro J . Iradier
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

[web2py] Re: Problem with crud.create and duplicate _formname

2010-09-09 Thread mdipierro
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