Hello, I'm adding an _after_update callback to my table in db.py using:
def myfunc(s,f): #do stuff return False db.tt._after_update.append(myfunc) My question is whether this will continuously append this method every time a database table is modified. I'm asking because I had a similar issue when creating the initial auth users/groups in db.py. I had to wrap the code in the following logic to prevent them being added multiple times if not db().select(db.auth_user.ALL).first(): group_1 = auth.add_group('group1', 'group1 employees') ... Thanks -- 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.