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

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

Reply via email to