fix captcha import; unit tests pass without p.f.captcha installed.

svn path=/plone.app.discussion/trunk/; revision=28942
This commit is contained in:
Timo Stollenwerk 2009-08-15 19:44:39 +00:00
parent 50de2b4031
commit 4a78ce44e0

View File

@ -16,9 +16,7 @@ from zope.schema import ValidationError
from plone.registry.interfaces import IRegistry from plone.registry.interfaces import IRegistry
from plone.app.discussion.interfaces import IDiscussionSettings from plone.app.discussion.interfaces import IDiscussionSettings, MessageFactory as _
from plone.formwidget.captcha import CaptchaMessageFactory as _
class WrongCaptchaCode(ValidationError): class WrongCaptchaCode(ValidationError):
__doc__ = _("""The code you entered was wrong, please enter the new one.""") __doc__ = _("""The code you entered was wrong, please enter the new one.""")