From ffcd7d7a3119bb9564a395a5651b6dc9f3b0d1c9 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Mon, 10 Aug 2009 16:38:41 +0000 Subject: [PATCH] adapt CaptchaExtender to CommentForm only. svn path=/plone.app.discussion/trunk/; revision=28642 --- plone/app/discussion/browser/captcha.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plone/app/discussion/browser/captcha.py b/plone/app/discussion/browser/captcha.py index 787df43..a0e3105 100644 --- a/plone/app/discussion/browser/captcha.py +++ b/plone/app/discussion/browser/captcha.py @@ -17,6 +17,7 @@ from plone.z3cform.fieldsets import extensible from plone.z3cform.fieldsets.interfaces import IFormExtender from plone.app.discussion.comment import Comment +from plone.app.discussion.browser.comments import CommentForm class ICaptcha(Interface): captcha = schema.TextLine(title=u"Type the word 'human' in all capital letters.", @@ -32,7 +33,7 @@ provideAdapter(Captcha) provideAdapter(AttributeAnnotations) class CaptchaExtender(extensible.FormExtender): - adapts(Interface, IDefaultBrowserLayer, Interface) # context, request, form + adapts(Interface, IDefaultBrowserLayer, CommentForm) # context, request, form def __init__(self, context, request, form): self.context = context