Opened 3 years ago

Closed 6 months ago

Last modified 6 months ago

#8594 closed defect (fixed)

ttd/htdocs needs to have something in it

Reported by: sandinak Owned by: sinnvoller
Priority: normal Component: TicketTeamDispatcherPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


I had two hacks..


package_data={PACKAGE_SHORT: ['tpl/*','htdocs/*']},
mkdir ttd/htdocs
touch ttd/htdocs/empty.html

else you get errors such as:

2011-03-10 23:03:24,501 Trac[main] DEBUG: Dispatching <Request "GET '/chrome/tracwysiwyg/wysiwyg-load.js'">
2011-03-10 23:03:24,510 Trac[module] INFO: Loading htdocs dir
2011-03-10 23:03:24,510 Trac[chrome] DEBUG: Prepare chrome data for request
2011-03-10 23:03:24,511 Trac[session] DEBUG: Retrieving session for ID 'branson'
2011-03-10 23:03:24,515 Trac[main] DEBUG: Negotiated locale: None -> en_US
2011-03-10 23:03:24,529 Trac[main] ERROR: Internal Server Error: 
Traceback (most recent call last):
  File "build/bdist.macosx-10.6-universal/egg/trac/web/", line 511, in _dispatch_request
  File "build/bdist.macosx-10.6-universal/egg/trac/web/", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.macosx-10.6-universal/egg/trac/web/", line 463, in process_request
    in provider.get_htdocs_dirs() or []
  File "build/bdist.macosx-10.6-universal/egg/ttd/", line 118, in get_htdocs_dirs
    return [('ttd', resource_filename(__name__, 'htdocs'))]
  File "/Library/Python/2.6/site-packages/setuptools-0.6c9-py2.6.egg/", line 841, in resource_filename
    self, resource_name
  File "/Library/Python/2.6/site-packages/setuptools-0.6c9-py2.6.egg/", line 1311, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "/Library/Python/2.6/site-packages/setuptools-0.6c9-py2.6.egg/", line 1322, in _extract_resource
    zip_stat = self.zipinfo[zip_path]
KeyError: ttd/htdocs

Attachments (0)

Change History (2)

comment:1 Changed 6 months ago by rjollos

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

comment:2 Changed 6 months ago by rjollos

  • Resolution changed from duplicate to fixed

In 13579:

0.3dev: Plugin does not have an htdocs directory, so get_htdocs_dir needs to return an empty list. Fixes #8587, #8594.

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from sinnvoller. 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.