Opened 7 years ago

Last modified 3 years ago

#6923 assigned enhancement

[Patch] Trac 0.12 compatibility

Reported by: mwehr Owned by: rjollos
Priority: normal Component: StractisticsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12


This is a patch to get the StractisticsPlugin working with trac 0.12. It fixes the time stuff for the microsecond timestamp feature in trac 0.12.

have fun

best regards


Attachments (1)

stractistics_usecond.patch (5.5 KB) - added by mwehr 7 years ago.

Download all attachments as: .zip

Change History (7)

Changed 7 years ago by mwehr

comment:1 Changed 7 years ago by anonymous

Installed patch and got the plugin installed, but I am getting another error now.

KeyError: 'chrome.href'

File "build/bdist.linux-x86_64/egg/trac/web/", line 512, in _dispatch_requestFile "build/bdist.linux-x86_64/egg/trac/web/", line 233, in dispatchFile "build/bdist.linux-x86_64/egg/stractistics/", line 123, in process_requestFile "build/bdist.linux-x86_64/egg/stractistics/", line 32, in global_reportsFile "build/bdist.linux-x86_64/egg/stractistics/", line 73, in _repository_activityFile "build/bdist.linux-x86_64/egg/trac/web/", line 169, in __getitem__

comment:2 Changed 7 years ago by mwehr

  • Owner changed from dagomez to mwehr
  • Status changed from new to assigned


you could try to add following patch

--- plugins/stractisticsplugin/stractistics/	(revision 86)
+++ plugins/stractisticsplugin/stractistics/	(revision 87)
@@ -101,7 +101,7 @@
         #Patch for Trac 0.11
-        if trac.__version__.find('0.11') != -1:
-            chrome = Chrome(self.env)
-            chrome.populate_hdf(req)
+        #if trac.__version__.find('0.11') != -1 or trac.__version__.find('0.12') != -1:
+        chrome = Chrome(self.env)
+        chrome.populate_hdf(req)
         #Populating our context navigation bar.


comment:3 Changed 7 years ago by anonymous

Looks like your extra patch worked. Thanks :)

comment:4 Changed 6 years ago by rjollos

  • Summary changed from Patch for trac 0.12 microsecond feature to [Patch] Trac 0.12 compatibility

comment:5 Changed 6 years ago by rjollos

  • Owner changed from mwehr to rjollos
  • Status changed from assigned to new

comment:6 Changed 3 years ago by rjollos

  • Status changed from new to assigned

Add Comment

Modify Ticket

as assigned The owner will remain rjollos.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.