Trac Ticket Notification
$ticket_body_hdr
{% choose ticket.new %} {% when True %}
New ticket by $ticket.reporter:
$ticket.description
{% end %} {% otherwise %} {% if changes_body %}
Changes by $change.author:
{% for single_change in changes_list %}\ {% end %}
$single_change.name: $single_change.oldvalue $single_change.newvalue
{% end %} {% if change.comment %}
Comment${not changes_body and ' by %s' % change.author or ''}:
$change.comment
{% end %} {% if changes_descr %} {% if not changes_body and not change.comment and change.author %} {% end %} {% if changes_body or change.comment or not change.author %} {% end %}
Description changed by $change.author: Description:
$changes_descr
{% end %} {% end %}
{% end %}
Ticket Reference:
{% with pv = [(a[0].strip(), a[1].strip()) for a in [b.split(':') for b in [c.strip() for c in ticket_props.replace('|', '\n').splitlines()[1:-1]] if ':' in b]]; sel = ['Reporter', 'Owner', 'Type', 'Status', 'Priority', 'Component', 'Severity', 'Resolution', 'Keywords', 'Last Author', 'Relationships','Summary'] %}\ ${''.join('' % (format(p[0], ' <12'), p[1]) for p in pv if p[0] in sel)} {% end %}\
%s:%s