Ticket #29011

PATCH improve compatibility with Trac > 0.12.3

Open Date: 2012-07-16 08:18 Last Update: 2013-04-26 22:29

Reporter:
(Anonymous)
Owner:
(None)
Type:
Status:
Closed
Component:
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
None

Details

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
 

Ticket History (2/2 Histories)

2012-07-16 08:18 Updated by: None
  • New Ticket "PATCH improve compatibility with Trac > 0.12.3" created
2013-04-26 22:29 Updated by: jun66j5
  • Resolution Update from None to Fixed
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2013-04-26 22:29
Comment

Fixed in r834 to use pkg_resources.parse_version for comparion of the versions. Thanks for your reporting.

Attachment File List

No attachments

Edit

Please login to add comment to this ticket » Login