It is supported by DAL. It maps into OR on GAE. Is it not?

On Jan 27, 3:29 pm, "Arun K.Rajeevan" <the1.a...@gmail.com> wrote:
> Hi,
>
> I know belongs is not supported on GAE
>
> Fromhttp://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