Re: [web2py] Re: dal exception occurs when running on gae

2011-03-12 Thread zhao peng
thanks. On Sat, Mar 12, 2011 at 10:07 PM, Massimo Di Pierro wrote: > It is not a web2py bug. web2py it is just telling you that GAE cannot > do this, because there are no expressions on GAE. > > Instead of this: > > db(db.user.id == session.user_id).update(post_num =  db.user.post_num > + 1) > >

[web2py] Re: dal exception occurs when running on gae

2011-03-12 Thread Massimo Di Pierro
It is not a web2py bug. web2py it is just telling you that GAE cannot do this, because there are no expressions on GAE. Instead of this: db(db.user.id == session.user_id).update(post_num = db.user.post_num + 1) do db(db.user.id == session.user_id).update(post_num = auth.user.post_num + 1) and