Khalid EZZARAOUI wrote:
> # I use python 2.5 but u must have "tostring" in ElementTree
> from xml.etree.ElementTree import tostring
>   
>>> def makeLink(obj):
>>>      link= ET.Element('a', href=obj.url)
>>>      link.text = obj.title
>>>      returnlink
>>>       
> here use : return tostring(link)
>   
Thank you.  I tried this and it does the same as if I just enter '<a 
href="/project/8">ARWD internal project</a>' into the DataGrid.  The 
DataGrid converts the HTML into HTML entities and puts out:

&lt;a href="/project/8"&gt;ARWD internal project&lt;/a&gt;

So instead of a link displaying on the rendered page, the unrendered 
HTML of the link displays on the page:

<a href="/project/8">ARWD internal project</a>

Is there any way to force a DataGrid to render raw HTML without 
performing this transformation?

Tim Black

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to