[web2py] Re: execute 2 function during update using sqlform.grid

2013-03-25 Thread Cliff Kachinske
In your function you can do db.._enable_record_versioning() . Record versioning is automatic on update so you can still use your original onupdate callback. check here and search for 'archive' http://web2py.com/books/default/chapter/29/06 On Monday, March 25, 2013 4:27:01 AM UTC-4, 黄祥 wrote:

[web2py] Re: execute 2 function during update using sqlform.grid

2013-03-25 Thread 黄祥
it works well, i define db.booking._enable_record_versioning() on models/db.py and replace onupdate=auth.archive with the other function on controller. thank you very much for your hint cliff. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" gro