the problem is in the looping, but the partial from functools do the trick, thank you so much anthony. the solution is not use the looping, but put everything on it's own table definition, and if using in form level, just passed it using partial too. tested it work fine in form level (oncreate, onupdate, ondelete), and in database level (after_insert and after_update callback). tested using before_delete callback is not work, because the main problem of webp2y imho is when using record_versioning or auth.signature, the record is not actually deleted, just set the field is_active into False / off, so the before_delete callback is not execute, the solution just use the form level ondelete.
please correct me if i'm wrong about that. thanks and best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.