Il 13/01/16 15:56, 'DenesL' via web2py-users ha scritto: > Which web2py version is that?. > Not sure when objects.py was fixed but the fix is there in 2.12.03 for > sure. Quite an old version... it's a 2.9.12
by the way I've by-passed the problem using theese five lines of code instead of the single method "validate_and_update_or_insert": n = self.db(query).count() if n>0: res = self.db[self.table_name].validate_and_update(query, **vars) else: res = self.db[self.table_name].validate_and_insert(**vars) Thank you Best regards Manuele > > Regards, > Denes -- 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.