Modify ↓
#8594 closed defect (fixed)
ttd/htdocs needs to have something in it
| Reported by: | branson | Owned by: | Alexander von Bremen-Kühne |
|---|---|---|---|
| Priority: | normal | Component: | TicketTeamDispatcherPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: | 0.11 |
Description
I had two hacks..
in setup.py
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/main.py", line 511, in _dispatch_request
dispatcher.dispatch(req)
File "build/bdist.macosx-10.6-universal/egg/trac/web/main.py", line 237, in dispatch
resp = chosen_handler.process_request(req)
File "build/bdist.macosx-10.6-universal/egg/trac/web/chrome.py", line 463, in process_request
in provider.get_htdocs_dirs() or []
File "build/bdist.macosx-10.6-universal/egg/ttd/admin.py", 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/pkg_resources.py", line 841, in resource_filename
self, resource_name
File "/Library/Python/2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py", 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/pkg_resources.py", line 1322, in _extract_resource
zip_stat = self.zipinfo[zip_path]
KeyError: ttd/htdocs
Attachments (0)
Note: See
TracTickets for help on using
tickets.



Duplicate of #8587.