Re: [web2py] Re: I can not update
thanks, solved my problem 2010/6/4 mdipierro > In this > > try: > #1 > except: > # 2 > > if #1 fails because it violates a constraint, than you need to > rollback before you can access the database again. > Try this: > > t
[web2py] Re: I can not update
In this try: #1 except: # 2 if #1 fails because it violates a constraint, than you need to rollback before you can access the database again. Try this: try: #1 db.commit()