I have the following code:
.... if form.accepts(request.vars, session): response.flash = int(form.vars.id) #id = int(form.vars.id) #doc = tb_documentos[id] #doc.update_record(estado=1) #redirect(url_expediente) elif form.errors: .... .... When you insert a record, the id should be about 30, but it returns enough numbers higher, but that does not follow any logic. For example 262826 and are not correlated. The row is inserted correctly. I do not know when it started to happen, I think that Thursday was working well. I regularly update web2py from the trunk. I was due to introduction of a bug. But download the stable version 1.79.2 and the problem continues. The database, which I do not administer, is MSSQL Server. I'll talk to the admin to see if there's something weird, but I doubt it. In my development machine with a test application and a database this works well. Someone has something similar?