Modify

Opened 18 years ago

Closed 18 years ago

#391 closed defect (fixed)

`DoxygenPlugin` object has no attribute `get_htdocs_dirs`

Reported by: anonymous Owned by: Jason Parks
Priority: high Component: DoxygenPlugin
Severity: major Keywords: Error
Cc: Trac Release: 0.10

Description

Latest version of DoxygenPlugin using Trac SVN trunk, generates this error in the log file, trac.log running as a plugin, TracDoxygen-0.1-py2.3.egg:

2006-05-25 11:11:12,310 Trac[main] ERROR: 'DoxygenPlugin' object has no attribute 'get_htdocs_dirs'
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/trac/web/main.py", line 299, in dispatch_request
    dispatcher.dispatch(req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/trac/web/main.py", line 189, in dispatch
    resp = chosen_handler.process_request(req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/trac/web/chrome.py", line 219, in process_request
    for dir in [os.path.normpath(dir[1]) for dir
AttributeError: 'DoxygenPlugin' object has no attribute 'get_htdocs_dirs'

Attachments (0)

Change History (7)

comment:1 Changed 18 years ago by anonymous

Resolution: fixed
Status: newclosed

Since DoxygenPlugin is an ITemplateProvider, it needs to implement the method get_htdocs_dirs(). The following patch adds an empty implementation.

*** doxygentrac/doxygentrac.py.orig     Mon Jun 12 01:04:53 2006
--- doxygentrac/doxygentrac.py  Mon Jun 12 01:01:42 2006
***************
*** 54,59 ****
--- 54,62 ----
  
      # ITemplateProvider methods
  
+     def get_htdocs_dirs(self):
+         return []
+ 
      def get_templates_dirs(self):
          from pkg_resources import resource_filename
          return [resource_filename(__name__, 'templates')]

comment:2 in reply to:  1 ; Changed 18 years ago by Christian Boos

Replying to anonymous:

... The following patch adds an empty implementation.

By looking at the doxygen plugin code, it seems that an empty implementation would be OK, but this doesn't mean you should close the ticket as fixed: this has to be done by the plugin author once the problem has been effectively fixed in the code.

comment:3 Changed 18 years ago by Christian Boos

Resolution: fixed
Status: closedreopened

(and therefore reopening it)

comment:4 in reply to:  2 ; Changed 18 years ago by anonymous

... but this doesn't mean you should close the ticket as fixed: this has to be done by the plugin author once the problem has been effectively fixed in the code.

So that would be probably never :-).

comment:5 in reply to:  4 ; Changed 18 years ago by Noah Kantrowitz

Replying to anonymous:

... but this doesn't mean you should close the ticket as fixed: this has to be done by the plugin author once the problem has been effectively fixed in the code.

So that would be probably never :-).

If you would like to help with development, just email the current maintainer, and ask them to send Alec a message indicating that he should add you to this project.

comment:6 in reply to:  5 Changed 18 years ago by Radek Bartoň

If you would like to help with development, just email the current maintainer, and ask them to send Alec a message indicating that he should add you to this project.

Sorry for not logged reply. We are curently solving that with Alec.

comment:7 Changed 18 years ago by Radek Bartoň

Resolution: fixed
Status: reopenedclosed

Fixed in changeset 871.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jason Parks.
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.