using field.represent or the new filter_out parameter ... docs aren't there
but it's pretty simple.....
db.define_table('test3',
Field('testfield', filter_out=lambda value : value.upper)
)
However, for "computations" like MARKMIN, the better choice is to store in
another computed field the result, so you don't "spend" cpu cycles on
rendering over and over the same thing every time.....
On Monday, January 7, 2013 8:53:43 PM UTC+1, HittingSmoke wrote:
>
> For instance, could I set a field in the database to be always rendered in
> Markmin or sanitized HTML instead of in the view every time it's queried?
--