On Thu, 12 Jul 2007 18:21:40 +0200, "Diez B. Roggisch"
<[EMAIL PROTECTED]> wrote:

>> 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>")

Sure, except you would have to manually escape any dynamic value.



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