repr is used at the SQLFORM/SQLTABLE level. db does not filer input and output.
On Oct 25, 4:04 am, jon <[email protected]> wrote: > Looking for ideas on how to get the result of a field's repr instead > of its raw value when doing a select. Example: > > db.define_table('foo', Field('bar', represent=lambda x, row: > x.upper())) > db.foo.insert({'bar':'aaa'}) > > then in my controller... > > stuff = db().select(db.foo.ALL) > > The value of stuff[0].bar is 'aaa' but I want 'AAA' (the output of the > field's "represent" function).

