Marco Mariani schrieb:
> 
> 
> On Thu, 12 Jul 2007 07:18:10 -0700, [EMAIL PROTECTED] wrote:
>> I want to include links into some cells of a grid widget, however the
>> "<" and ">" get mangled into an entity. Is there a way to avoid this?
> 
> Yes. Return an ElementTree.Element instance from you getter.
> 
> Something like (untested):
> 
> 
> def get_link(o):
>     el = Element('a',href=tg.url('/path/to/view/',object=o.id)
>     el.text = o.description
>     return el

This should be easier doable using the KID XML-function:

def get_link(o):
     return kid.XML("<a href='foo'>foo</a>")

Diez

--~--~---------~--~----~------------~-------~--~----~
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