Modify

Opened 4 years ago

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

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 mwehr 4 years ago.

Download all attachments as: .zip

Change History (7)

Changed 4 years ago by mwehr

comment:1 Changed 4 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 4 years ago by mwehr

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

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

Looks like your extra patch worked. Thanks :)

comment:4 Changed 3 years ago by rjollos

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

comment:5 Changed 3 years ago by rjollos

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

comment:6 Changed 3 months ago by rjollos

  • Status changed from new to assigned

Add Comment

Modify Ticket

Action
as assigned .
Author


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

 
Note: See TracTickets for help on using tickets.