Isn't random sort suported in GAE ?

* rows = db(query).select().sort(lambda row: random.random())
> File
> "/base/data/home/apps/s~movucahq/0-1.354917246392574252/gluon/dal.py", line
> 5789, in select
> return self.db._adapter.select(self.query,fields,attributes)
> File
> "/base/data/home/apps/s~movucahq/0-1.354917246392574252/gluon/dal.py", line
> 3410, in select
> (items, tablename, fields) = self.select_raw(query,fields,attributes)
> File
> "/base/data/home/apps/s~movucahq/0-1.354917246392574252/gluon/dal.py", line
> 3367, in select_raw
> filters = self.expand(query)
> File
> "/base/data/home/apps/s~movucahq/0-1.354917246392574252/gluon/dal.py", line
> 3249, in expand
> return expression.op(expression.first, expression.second)
> File
> "/base/data/home/apps/s~movucahq/0-1.354917246392574252/gluon/dal.py", line
> 3263, in AND
> a = self.expand(first)
> File
> "/base/data/home/apps/s~movucahq/0-1.354917246392574252/gluon/dal.py", line
> 3249, in expand
> return expression.op(expression.first, expression.second)
> File
> "/base/data/home/apps/s~movucahq/0-1.354917246392574252/gluon/dal.py", line
> 3109, in OR
> def OR(self,first,second): raise SyntaxError, "Not supported"
> SyntaxError: Not supported *

*
*
*--
*
*
*
*Bruno Rocha*
*[http://rochacbruno.com.br]*

Reply via email to