Yes, that part is fine. The problem is in the building of the
Expression object.
In gql.py:Expression:__or__():
was:
return Expression(self.name if self.type!='id' else '__key__'
+ '|' + other.name if other.type!='id' else '__key__', None, None)
should be:
return
fantastic! Uploading your fix to trunk.
On Nov 1, 11:50 pm, MicLee lmlll...@gmail.com wrote:
Yes, that part is fine. The problem is in the building of the
Expression object.
In gql.py:Expression:__or__():
was:
return Expression(self.name if self.type!='id' else '__key__'
+ '|' +
This is the code in web2py/gluon/contrib/gql.py
if orderby:
if isinstance(orderby, (list, tuple)):
orderby = gluon.sql.xorify(orderby)
assert_filter_fields(orderby)
if orderby.type == 'id':
orders =
3 matches
Mail list logo