inline for and if

Guy Doune cesium5500 at
Wed Oct 20 20:28:52 CEST 2010

I would get :
db.table.field1, db.table.field2, etc.
Inside a python instruction :
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: <>

More information about the Python-list mailing list