Re: [web2py] Re: (Class) references issue

2013-01-12 Thread molhokwai
Indeed. Knew about the & and should have remembered/thought about it... Apologies for the incongruous assumptions... On 1/12/13, Anthony wrote: > This is the wrong syntax for a query: > > db(db.user_atom.user == self._user.id and db.user_atom.top_atom == self. > _top_atom.id) > > Instead of usin

[web2py] Re: (Class) references issue

2013-01-12 Thread Anthony
This is the wrong syntax for a query: db(db.user_atom.user == self._user.id and db.user_atom.top_atom == self. _top_atom.id) Instead of using "and", you must use "&" (see this sectionin the book): db((db.user_atom.user == self._u