uhm..... I think that this particular case should be retained as it is:
belongs accepts either a list or a set, but not a string, and **should**
fail when you pass to it a string instead of a list.
either way your code should do
possible_items = request.vars.items
if isinstance(possible_items, str):
possible_items = [possible_items]
results = db(db.table.belongs(possible_items))
--
---
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.