Hello, I'm trying to get a solid way of triggering an action, "after" an update, based on the data "before" the update.
One approach is building an SQLFORM, inject the old values as hidden fields, validate it and do the update and triggers manually, but then you are limited to use this FORM (it wouldn't work the same if you edit the record on a grid, e.g.). Theoretically, the safer and "universal" way is with 'after_update' callback, as in: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#before-and-after-callbacks I imagined the Set accesing these old values, but that's true only for 'before_update' callback. These was a surprise because i cannot find any difference from the record of field values, except the id, but this could be passed explicitly as it is done in 'after_insert' callback. So, what's the purpose of the Set in 'after_update', then?. And, is there another way to obtain the old values?. Regards. -- 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.