Hello,
I revive this threads
: https://groups.google.com/forum/?fromgroups=#!topic/web2py/Qk2LJsEU4Lg
And open this one to make sure this one doesn't get lost...
You can see my other posts to get more details, but breifely I fall on DAL
issue I think with .belongs if for example I only pass a single item to the
belongs inside a query...
I use postgres 9.1 with pgcog2 and web2py 2.3.2
To me .belongs should not failed on a query like this :
db(... & (db.table.field.belongs(request.vars.items)).select(...)
Where request.vars.items may content 1 or more items... So in case there is
only one item I could use this work around :
if len(request.vars.items) == 1:
request.vars.items = (request.vars.items, '')
That work...
But I think DAL need to be fix...
Thanks
Richard
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.