Opened 17 years ago
Closed 17 years ago
#7144 closed defect (fixed)
Error when enabling the captcha SpamFilter options
Reported by: | anonymous | Owned by: | Christian Boos |
---|---|---|---|
Priority: | normal | Milestone: | not applicable |
Component: | plugin/spamfilter | Version: | 0.11b2 |
Severity: | blocker | Keywords: | |
Cc: | shendric@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
After installing spam-filter-captcha r6871, the following error occurs when enabling either of the captch options from webadmin:
Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/Trac-0.11b2-py2.4.egg/trac/web/api.py", line 339, in send_error 'text/html') File "/usr/lib/python2.4/site-packages/Trac-0.11b2-py2.4.egg/trac/web/chrome.py", line 672, in render_template template = self.load_template(filename, method=method) File "/usr/lib/python2.4/site-packages/Trac-0.11b2-py2.4.egg/trac/web/chrome.py", line 648, in load_template self.templates = TemplateLoader(self.get_all_templates_dirs(), File "/usr/lib/python2.4/site-packages/Trac-0.11b2-py2.4.egg/trac/web/chrome.py", line 402, in get_all_templates_dirs dirs += provider.get_templates_dirs() File "build/bdist.linux-i686/egg/tracspamfilter/captcha/api.py", line 100, in get_templates_dirs File "/usr/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/pkg_resources.py", line 840, in resource_filename return get_provider(package_or_requirement).get_resource_filename( File "/usr/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/pkg_resources.py", line 1311, in get_resource_filename return self._extract_resource(manager, zip_path) File "/usr/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/pkg_resources.py", line 1322, in _extract_resource zip_stat = self.zipinfo[zip_path] KeyError: 'tracspamfilter/captcha/templates'
Attachments (1)
Change History (7)
comment:1 by , 17 years ago
Cc: | added |
---|
comment:2 by , 17 years ago
Description: | modified (diff) |
---|---|
Keywords: | helpwanted added |
Milestone: | → not applicable |
by , 17 years ago
Attachment: | verify_captcha.html added |
---|
comment:3 by , 17 years ago
The translated file is attached. Including this file in the source fixes the error.
comment:4 by , 17 years ago
(However, when using trac with this option enabled, I never see the verification form — I only get that something is spam. Should that be a different ticket?)
comment:5 by , 17 years ago
Owner: | changed from | to
---|
Try again with r6874, some more changes were needed.
comment:6 by , 17 years ago
Keywords: | helpwanted removed |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Also, I've got this working when I realized I had to change the reject handler:
[spam-filter] ... reject_handler = CaptchaSystem
Expect some rough edges, as I didn't test that thoroughly.
For the "image" style, you need to have PIL installed (but I've not tried that one so far).
Looks like there's no source:sandbox/spam-filter-captcha/tracspamfilter/templates/verify_captcha.html
(need to port source:sandbox/spam-filter-captcha/tracspamfilter/templates/verify_captcha.cs)