Modify

Opened 15 years ago

Last modified 5 years ago

#6923 new enhancement

[Patch] Trac 0.12 compatibility

Reported by: Mario Owned by:
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 15 years ago.

Download all attachments as: .zip

Change History (9)

Changed 15 years ago by Mario

Attachment: stractistics_usecond.patch added

comment:1 Changed 15 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 15 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 15 years ago by anonymous

Looks like your extra patch worked. Thanks :)

comment:4 Changed 14 years ago by Ryan J Ollos

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

comment:5 Changed 14 years ago by Ryan J Ollos

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

comment:6 Changed 11 years ago by Ryan J Ollos

Status: newassigned

comment:7 Changed 5 years ago by Ryan J Ollos

Status: assignednew

comment:8 Changed 5 years ago by Ryan J Ollos

Owner: Ryan J Ollos deleted

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


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

 
Note: See TracTickets for help on using tickets.