I'm trying to write a custom event renderer for an event type. I want to change the event display to a single field of the event. Basically it's working:
<%def name="event_raw(job, event, request, options, xslt)">
<% msg = event.fields.get('message') %>
% if msg is None:
<%parent:event_raw job="${job}", event="${event}", request="${request}", options="${options}", xslt="${xslt}" />
% else:
<pre class="event">${msg}</pre>
% endif
</%def>
The problem is that I'm loosing the segmentation functionality (highlighting and selection in the GUI). It seems that this is achieved with the event.raw.toXml() call. Can I do something like that with any field ?
Thx for any help,
Wollinet
... View more