More information.
Seems if I map the column names using the __header__ stuff then the
__xml_fields__ stuff does not work.
class PlotboxTable(TableBase):
__model__ = Plotbox
__omit_fields__ = ['plotbox_id', 'password', 'netmask', '__actions__']
__xml_fields__ = ['config_zip_url']
__add_fields__ = {'config_zip_url':None}
__headers__ = {
'server_name':'Server Name',
'share_name':'Share Name',
'username':'Username',
'ip_address':'IP Address',
'server_ip_address':'Server IP Address',
'network_card':'NDIS Driver',
'config_zip_url':'Download Config'
}
plotbox_table = PlotboxTable(DBSession)
My "Download Config" columns are like this:
<a href="/configs/1/config.zip">1 config.zip</a>
If I comment out the __headers__ then I get links that work.
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/turbogears/-/fGuk4ry1pd8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en.