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
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
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?
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
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(
5 matches
Mail list logo