If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!
Thanks for the share!
You're welcome Paulo,
really I dodn't know if it was a really useful trick or just an exercise in style. Easiest solution can be used.
A little trick to sum up or multiply a list of query conditions.