inline for and if

Guy Doune cesium5500 at yahoo.ca
Wed Oct 20 14:28:52 EDT 2010


Hello,
I would get :
db.table.field1, db.table.field2, etc.
Inside a python instruction :
db().select(HERE)
It is web2py query actually.

But I can't do this :
db().select(for f in db['table'].fields:    if f not in fieldsBlackList:        db['table'][f],)


Any idea?






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20101020/1d5d2714/attachment.html>


More information about the Python-list mailing list