[web2py] problem with update

2012-12-17 Thread cabildocl
hi, i have a problem from to update web2py to latest version, the error is the next: Ticket ID 10.0.0.28.2012-12-17.11-32-22.3cb0b23c-4656-47da-8acd-5a44016ed107 type 'exceptions.ValueError' invalid literal for int() with base 10: '-1 day,' Function argument list (self

[web2py] problem with update

2012-06-02 Thread peter
In the book it says And you can update all records in a set by passing named arguments corresponding to the fields that need to be updated: update 1. db(db.person.id 3).update(name='Ken') Expressions The value assigned an update statement can be an expression. For example consider

[web2py] Problem with update

2012-02-13 Thread pbreit
Shouldn't be he problem but I see at leat one typo: resposne.session_id Can you try setting session_id to 0? Why are you doing this?

Re: [web2py] Problem with update

2012-02-13 Thread Richard Vézina
You should replace IS_NULL_OR by IS_EMPTY_OR, IS_NULL_OR is depricated if I remember. I don't see what could be wrong... But I read recently about test that could be conflicting with web2py some how... But I guest that you try to implement a home made solution to follow logged on and logged off

[web2py] Problem with update

2012-02-12 Thread weheh
I'm running Version 1.99.2. # model db.define_table('test', Field('user_id',db.auth_user,requires=IS_NULL_OR(IS_IN_DB(db,'auth_user.id'))), Field('session_id',default=resposne.session_id), ... ) # at some point, the following would be executed: test_id=db.test.insert(