Re: inline for and if

2010-10-23 Thread Chris Rebert
On Wed, Oct 20, 2010 at 11:28 AM, Guy Doune wrote: > 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 fieldsBl

inline for and if

2010-10-23 Thread Guy Doune
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? -- http://mail.python.