Opened 8 years ago

Last modified 4 years ago

#6923 assigned enhancement

[Patch] Trac 0.12 compatibility

Reported by: Mario Owned by: Ryan J Ollos
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 Mario 8 years ago.

Download all attachments as: .zip

Change History (7)

Changed 8 years ago by Mario

Attachment: stractistics_usecond.patch added

comment:1 Changed 8 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 8 years ago by Mario

Owner: changed from dagomez to Mario
Status: newassigned


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 8 years ago by anonymous

Looks like your extra patch worked. Thanks :)

comment:4 Changed 7 years ago by Ryan J Ollos

Summary: Patch for trac 0.12 microsecond feature[Patch] Trac 0.12 compatibility

comment:5 Changed 7 years ago by Ryan J Ollos

Owner: changed from Mario to Ryan J Ollos
Status: assignednew

comment:6 Changed 4 years ago by Ryan J Ollos

Status: newassigned

Modify Ticket

Change Properties
Set your email in Preferences
as assigned The owner will remain Ryan J Ollos.

Add Comment

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

Note: See TracTickets for help on using tickets.