Making captcha validator only adapt for the appropriate browser layer. This fixes the captcha error issue when p.a.d is in a deployment but not installed yet. evilbungle branch merge.
svn path=/plone.app.discussion/trunk/; revision=30667
This commit is contained in:
parent
7cd9ef2491
commit
7ef2672e5c
@ -16,7 +16,11 @@ from zope.schema import ValidationError
|
||||
|
||||
from plone.registry.interfaces import IRegistry
|
||||
|
||||
from plone.app.discussion.interfaces import IDiscussionSettings, IDiscussionLayer
|
||||
from plone.app.discussion.interfaces import IDiscussionSettings, IDiscussionLayer, MessageFactory as _
|
||||
|
||||
from zope.interface import implements, Interface
|
||||
from zope.schema.interfaces import IField
|
||||
from zope.component import adapts
|
||||
|
||||
try:
|
||||
from plone.formwidget.captcha import CaptchaMessageFactory as _
|
||||
|
Loading…
Reference in New Issue
Block a user