I may have missed it but according to:

http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html#Restrictions_on_Queries

An entity must match all filters to be a result. In the JDOQL string
syntax, you can separate multiple filters with || (logical "or") and
&& (logical "and"), although keep in mind that || can only be employed
when the filters it separates all have the same field name. In other
words, || is only legal in situations where the filters it separates
can be combined into a single contains() filter.

If this is the case the line in gluon/contrib/gql.py

    # def __or__(self, other): return Query('(%s) OR (%s)'%(self,
other))

could be replaced by

    def __or__(self, other): return Query('(%s || %s)'%(self, other))

and it may work. Can anybody give it a try?

Massimo

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to