RSS summary length

1 view
Skip to first unread message

Mike

unread,
Mar 25, 2010, 4:23:12 PM3/25/10
to Trac Development
I want to make it so that the you can customize the length of the RSS
summary fields for the changeset events and the ticket events. The
issue that I am having is that I am not sure how to change the ticket
summary length of the RSS feed without effecting the length of the
ticket length in the normal timeline view. The only thing I can think
of is in the /ticket/web_ui.py I have:

if self.timeline_number_of_char > 0:
summary = shorten_line(summary,
self.timeline_number_of_char)
else:
summary = tag.i('no title')

where self.timeline_number_of_char is an option var.

This works but I was wondering about creating my own context hint or
using the shorten_line hint but beable to pass in a value to speficy
the length of that line. So when I am setting up the hints for the
rss feed before it gets passed to the render I can say
rss_context.set_hint(shortenline=true, length=X).

Reply all
Reply to author
Forward
0 new messages