fix captcha import; unit tests pass without p.f.captcha installed.
svn path=/plone.app.discussion/trunk/; revision=28942
This commit is contained in:
parent
50de2b4031
commit
4a78ce44e0
@ -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.""")
|
||||||
|
Loading…
Reference in New Issue
Block a user