From 4a78ce44e0944ec91eac1e810145c36fcf759849 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Sat, 15 Aug 2009 19:44:39 +0000 Subject: [PATCH] fix captcha import; unit tests pass without p.f.captcha installed. svn path=/plone.app.discussion/trunk/; revision=28942 --- plone/app/discussion/browser/validator.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plone/app/discussion/browser/validator.py b/plone/app/discussion/browser/validator.py index 60448e7..7d9688c 100644 --- a/plone/app/discussion/browser/validator.py +++ b/plone/app/discussion/browser/validator.py @@ -16,9 +16,7 @@ from zope.schema import ValidationError from plone.registry.interfaces import IRegistry -from plone.app.discussion.interfaces import IDiscussionSettings - -from plone.formwidget.captcha import CaptchaMessageFactory as _ +from plone.app.discussion.interfaces import IDiscussionSettings, MessageFactory as _ class WrongCaptchaCode(ValidationError): __doc__ = _("""The code you entered was wrong, please enter the new one.""")