Trying to get an __add_fields__ to NOT be escaped to the links will
just work.
class PlotboxTableFiller(TableFiller):
__model__ = Plotbox
__add_fields__ = {'config_zip_url':None}
def config_zip_url(self, obj):
url = '<a href="">%s://%s/configs/%d/config.zip</a>' % \
(request.environ['wsgi.url_scheme'],
request.environ['HTTP_HOST'], obj.plotbox_id)
return url
class PlotboxTable(TableBase):
__model__ = Plotbox
__omit_fields__ = ['plotbox_id', 'password', 'netmask',
'__actions__']
__add_fields__ = {'config_zip_url':None}
__xml_fields__ = ['config_zip_url']
But I get the following displayed.
<a href="">
http://127.0.0.1:8080/configs/10/config.zip</a>
How can I get it so me __add_fields__ are not escaped?
Thanks.