Modify

Opened 16 years ago

Closed 15 years ago

Last modified 14 years ago

#4052 closed defect (fixed)

Missing 'get_htdocs_dirs' method for TicketStatsPlugin

Reported by: 10function Owned by: Prentice Wongvibulsin
Priority: normal Component: TracTicketStatsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Here is my current software configuration :

User Agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.9 (like Gecko) (Debian)

Trac:0.11.1 Python:2.5.2 (r252:60911, Sep 29 2008, 21:15:13) [GCC 4.3.2] setuptools:0.6c8 SQLite:3.5.9 pysqlite:2.4.1 Genshi:0.5.1 Subversion:1.5.1 (r32289) jQuery: 1.2.6


The TicketStatslugin in itself works correctly, but combined with some plugins (like Stractistics) on trac 0.11 exhibit the following error :

AttributeError: 'TicketStatsPlugin' object has no attribute 'get_htdocs_dirs'

Python Traceback
 Most recent call last: 
 File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 423, in _dispatch_request  
 File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 197, in dispatch  
 File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/chrome.py", line 364, in process_request

This simple patch do the trick and correct the problem :

35,37d34
<       def get_htdocs_dirs(self):
<               return pkg_resources.resource_filename(__name__, 'htdocs')
<

Attachments (0)

Change History (2)

comment:1 Changed 15 years ago by Prentice Wongvibulsin

Resolution: fixed
Status: newclosed

Thanks for catching that! I think its fixed in [6379].

comment:2 Changed 14 years ago by Ryan J Ollos

#4018 and #3385 are duplicates of this ticket. I mentioned because #7423 is having a problem which appears to be due to running an older version of TracTicketStatsPlugin, prior to the fix in [6379].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Prentice Wongvibulsin.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.