Namespace issue in impl.py for TracTimeVisualizerPlugin
|Reported by:||jhamell@…||Owned by:||mape|
Using Trac 0.11b2, Apache 2.2.3, Apache-mod-python 3.1.3, Python 2.4.2, SuSE 10.1, TracTimeVisualizerPlugin 0.6.
We've slowly gained inertia using Trac, and came across your plugin as a useful addition. Installed from an egg, but the visualization generation wouldn't work - it would return a single file with two XML documents, the first being the SVG image, but second an error. The following apache error log clued us in:
[Mon May 19 15:32:45 2008] [error] [client 220.127.116.11] PythonHandler trac.web.modpython_frontend: File "/usr/local/lib/python2.4/site-packages/TracTimeVisualizerPlugin-0.6-py2.4.egg/tractimevisualizerplugin/impl.py", line 427, in process_request\n raise trac.web.RequestDone [Mon May 19 15:32:45 2008] [error] [client 18.104.22.168] PythonHandler trac.web.modpython_frontend: AttributeError: 'module' object has no attribute 'web'
We're not terribly familiar with Python, but from what I understand the your code ( raise trac.web.RequestDone ) should work - it's resolving, or should be, the correct class. For whatever reason, it can't resolve.
To fix this we added from trac.web import RequestDone to the import statements at the top of the file, which then allowed return RequestDone to work on our machine.
The issue could be specific to our setup, I don't know offhand. Thanks for your effort on this plugin.