Re: [web2py] Re: replace delete with inactive

2011-07-07 Thread Richard Vézina
Hello, But how to implement db foreign key constraint at web2py model level?? Thank you. Richard On Thu, Nov 18, 2010 at 2:41 PM, mdipierro wrote: > good point. > > This will work: > >if request.post_vars.delete_this_record: >del request.post_vars.delete_this_record >db.t_

[web2py] Re: replace delete with inactive

2010-11-18 Thread Carlos
Thanks Massimo ! On Nov 18, 1:41 pm, mdipierro wrote: > good point. > > This will work: > >     if request.post_vars.delete_this_record: >         del request.post_vars.delete_this_record >         db.t_person.active.update=False > > there are two problems in your example: > - you are using reque

[web2py] Re: replace delete with inactive

2010-11-18 Thread mdipierro
good point. This will work: if request.post_vars.delete_this_record: del request.post_vars.delete_this_record db.t_person.active.update=False there are two problems in your example: - you are using request.vars and not request.post_vars which crud uses and therefore the varia