Modify

Opened 7 years ago

Last modified 3 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

Description

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

Mario

Attachments (1)

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

Download all attachments as: .zip

Change History (7)

Changed 7 years ago by Mario

Attachment: stractistics_usecond.patch added

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/main.py", line 512, in _dispatch_requestFile "build/bdist.linux-x86_64/egg/trac/web/main.py", line 233, in dispatchFile "build/bdist.linux-x86_64/egg/stractistics/web_ui.py", line 123, in process_requestFile "build/bdist.linux-x86_64/egg/stractistics/global_reports.py", line 32, in global_reportsFile "build/bdist.linux-x86_64/egg/stractistics/global_reports.py", line 73, in _repository_activityFile "build/bdist.linux-x86_64/egg/trac/web/clearsilver.py", line 169, in __getitem__

comment:2 Changed 7 years ago by Mario

Owner: changed from dagomez to Mario
Status: newassigned

Hi,

you could try to add following patch

--- plugins/stractisticsplugin/stractistics/web_ui.py	(revision 86)
+++ plugins/stractisticsplugin/stractistics/web_ui.py	(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.

Mario

comment:3 Changed 7 years ago by anonymous

Looks like your extra patch worked. Thanks :)

comment:4 Changed 6 years ago by Ryan J Ollos

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

comment:5 Changed 6 years ago by Ryan J Ollos

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

comment:6 Changed 3 years ago by Ryan J Ollos

Status: newassigned

Modify Ticket

Change Properties
Set your email in Preferences
Action
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.