Hi, 

I know belongs is not supported on GAE

>From http://www.web2py.com/AlterEgo/default/show/248 
><http://www.web2py.com/AlterEgo/default/show/248>
 

*it's clear that we have to convert*

rows = db(purchase.buyer.belongs((kenny,cartman)))\
         .select(orderby=purchase.quantity)

*to*
*


*
*

rows = (db(purchase.buyer==kenny).select()|db(purchase.buyer==cartman).select())

*
*


*
*


*
*

But if the list is too big (here only kenny and cartman)

*
, it'll become quite tedious.

Will someone have something to make it easier?
for eg: a lambda expression.
It's crucial as of now.
Please give me a solution if you got the idea.

Reply via email to