PATCH improve compatibility with Trac > 0.12.3
especially compatibility with Trac 1.0dev
Index: ticketgantt.py =================================================================== --- ticketgantt.py (revision 827) +++ ticketgantt.py (working copy) @@ -649,12 +649,7 @@ 'modes': data['modes']}) add_stylesheet(req, 'common/css/report.css') - if __version__ > '0.12': - # >= Trac 0.12.1 - add_script(req, 'common/js/query.js') - else: - # only Trac 0.12, not compatible with Trac 0.11.x - add_script(req, 'tc/js/query.js') + add_script(req, 'tc/js/query.js') return 'gantt.html', data, None
Fixed in r834 to use pkg_resources.parse_version for comparion of the versions. Thanks for your reporting.
especially compatibility with Trac 1.0dev