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):
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