Opened 6 years ago

Closed 5 years ago

Last modified 4 years ago

#4052 closed defect (fixed)

Missing 'get_htdocs_dirs' method for TicketStatsPlugin

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


Here is my current software configuration :

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

Python:2.5.2 (r252:60911, Sep 29 2008, 21:15:13) [GCC 4.3.2]
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/", line 423, in _dispatch_request  
 File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/", line 197, in dispatch  
 File "/usr/lib/python2.5/site-packages/Trac-0.11.1-py2.5.egg/trac/web/", line 364, in process_request

This simple patch do the trick and correct the problem :

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

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by echo0101

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:2 Changed 4 years ago by rjollos

#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].

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from echo0101. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.