=== modified file 'PKG-INFO' --- PKG-INFO 2007-10-18 21:24:02 +0000 +++ PKG-INFO 2007-10-18 23:17:08 +0000 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: TracGantt -Version: 0.3.2a +Version: 0.3.2a.michael Summary: This is a Gantt-Chart creation plugin for Trac. Home-page: http://willbarton.com/code/tracgantt/ Author: Will Barton === modified file 'setup.py' --- setup.py 2007-10-18 21:24:02 +0000 +++ setup.py 2007-10-18 23:13:16 +0000 @@ -5,7 +5,7 @@ setup ( name = "TracGantt", - version = "0.3.2a", + version = "0.3.2a.schmichael", packages = ['tracgantt'], package_data={'tracgantt': ['templates/*.cs', 'htdocs/*.css']}, === modified file 'tracgantt/gantt.py' --- tracgantt/gantt.py 2007-10-18 21:24:02 +0000 +++ tracgantt/gantt.py 2007-10-18 22:29:14 +0000 @@ -30,6 +30,7 @@ import re, datetime, time import tempfile, os import sys, traceback +from string import Template # Trac @@ -240,10 +241,16 @@ sumlen = int(self.env.config.get('gantt-charts', 'summary_length', 16)) - summary = ticket.values['summary'] + summary_template = Template( + self.env.config.get('gantt-charts', + 'summary_format', + '[$component] $reporter: $summary')) + + summary = summary_template.safe_substitute( + ticket.values) if len(summary) > sumlen: - shortsum = "%s..." % summary[:16] + shortsum = "%s..." % summary[:sumlen] else: shortsum = summary