[web2py] Re: GAE orderby multiple fields

2010-11-02 Thread MicLee
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

[web2py] Re: GAE orderby multiple fields

2010-11-02 Thread mdipierro
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__' + '|' +

[web2py] Re: GAE orderby multiple fields

2010-11-01 Thread mdipierro
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 =