GAE does not allow OR (|) involving two different fields.

On Jul 24, 9:04 am, Vidul Petrov <vidul.r...@gmail.com> wrote:
> Everything works fine on non-GAE env but the following exceptions
> occur otherwise:
>
> TypeError: __or__() takes exactly 1 argument (2 given)
> # because of:
> user_to_query = (db.auth_user.username==form.vars.username_email) | \
>
> (db.auth_user.email==form.vars.username_email)
>
> TypeError: long() argument must be a string or a number, not 'Row'
> # because of:
> db((db.friends.user_id==auth.user.id) &
> (db.friends.friend_id==user_to)).select().first()
>
> Could be Python (ver. 2.5.4) or web2py new features?
>
> Thank you for the help.

Reply via email to