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:
Timo Stollenwerk 2009-10-17 14:13:27 +00:00
parent 7cd9ef2491
commit 7ef2672e5c

View File

@ -16,7 +16,11 @@ from zope.schema import ValidationError
from plone.registry.interfaces import IRegistry 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: try:
from plone.formwidget.captcha import CaptchaMessageFactory as _ from plone.formwidget.captcha import CaptchaMessageFactory as _