web2py/web2py — pull request #20 by dhx (2012-08-07 09:35:11+00:00)
Title: (re-)enable field names in selects given as a string

db(db.table.id > 0).select(db.table.id,'name')

will throw an AttributeError as a string unfortunately does not have a type attribute.

The patch catches this exception and simply does not parse the value which is, well maybe not the best way to do it as the parse_value function seems to handle the "string" case(?):

```python
elif field_type in ('string', 'text', 'password', 'upload', 'dict'):
```

This used to work in earlier web2py versions and I hope this feature will remain!