Modify

Opened 9 years ago

Closed 9 years ago

#391 closed defect (fixed)

`DoxygenPlugin` object has no attribute `get_htdocs_dirs`

Reported by: anonymous Owned by: jparks
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 follow-up: Changed 9 years ago by anonymous

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

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 ; follow-up: Changed 9 years ago by cboos

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 9 years ago by cboos

  • Resolution fixed deleted
  • Status changed from closed to reopened

(and therefore reopening it)

comment:4 in reply to: ↑ 2 ; follow-up: Changed 9 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 ; follow-up: Changed 9 years ago by coderanger

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 9 years ago by Blackhex

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 9 years ago by Blackhex

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

Fixed in changeset 871.

Add Comment

Modify Ticket

Action
as closed The owner will remain jparks.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.