Even before 2.0, this probably would have been the preferred way to do it: (db.foo[field] for field in db.foo.fields)
Anthony On Tuesday, September 4, 2012 1:44:51 PM UTC-4, lcamara wrote: > > Hey, > > With 1.99.7 I was using this code to get all of the table fields: > > table_foo_fields = (db.foo.get(field) for field in db.foo.fields) > > I did this because I wanted to inspect the fields, to know if a field was > writable, etc. > > Now I get: > > AttributeError: 'Table' object has no attribute 'get' > > > I realize web2py takes backwards compatibility very seriously so I'm sure > this will get fixed, but in the mean time if there's a new and better way > to do this, I wouldn't mind knowing about it. > > Thanks > > --

