Unless things have changed very recently, GAE can only do OR where the left and right expressions involve the same field.
On Tuesday, 12 March 2013 07:25:28 UTC-5, José Manuel López wrote: > > I'm over GAE and I'm trying to do this: > db((db.Hotel.managerID == user)|(db.Hotel.hotelChainManager == user)). > select() > > But I'm getting an error: > > File "/Users/XXX/Development/Server/web2py/gluon/dal.py"*, *line 4237*, ** > in *OR > > *def *OR*(**self**,*first*,*second*): **raise *SyntaxError*(*"Not > supported") > > I'm searching in the book, but in the "OR" operator nothing is said about > that in GAE the OR is not supported: please can anyone tell me if 'm doing > anything wrong there? > Thank you. > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

