Is this acceptable?

return format_to_oneliner(self.env, context, data["description"])



On Mar 2, 8:34 am, Stodge <[email protected]> wrote:
> I'm writing a simple plugin that implements ITimelineEventProvider, so
> I need to format timeline entries. My descriptions contain ticket
> references but when they're displayed the references aren't clickable:
>
>         def render_timeline_event(self, context, field, event):
>                 data = event[3]
>                 if field == "url":
>                         return ROOT_URL + "/r/" + data["rid"]
>                 elif field == "title":
>                         return tag(_('Review request '), tag.em("(" + 
> data["rid"] + ")"),
> _(' posted'))
>                 else:
>                         # field = description
>                         return data["description"]
>
> How do I convert data["description"] into markup?
>
>     return data["description"]
>
> Thanks

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" 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/trac-users?hl=en.

Reply via email to