another way around is define it on the represent for your table text field.
e.g.
table.table_field.represent = lambda v, r: XML(v, sanitize = True)
the difference for previous code in this one you can use it for grid
without define it again on your view.
if you use string type field, yet it can be done with represent also
e.g.
table.website.represent = lambda website, field: \
A(website, _title = T("View Website"), _target = "_blank", _href = "%s" %
website)
best regards,
stifan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.