>
>
> query = reduce(lambda a, b: a | b, [db.asset_class.id == id for id 
> inavailable_classes
> ])
>

Fab function!  
But am I right in thinking that this would simplify things...

query = db.asset_class.id.belongs(available_classes)


-- 

--- 
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.


Reply via email to