is it possible to using before and after update callback simultaneously on 
the same table? tested before but got an error traceback
*e.g.*
def __before_update_order(s, f):
query = (db.product.id == 1)
db(query).update(quantity = 9)

def __after_update_order(s, f):
if not ('is_active' in f and f['is_active'] == False):
s.update(notes = 'test')

db.order._before_update.append(__before_update_order)
db.order._after_update.append(__after_update_order)

*return an error traceback :*
RuntimeError: maximum recursion depth exceeded while calling a Python object

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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to