From ead88131883e9e763f44094e23b7db63751bea70 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Sat, 15 Aug 2009 10:18:10 +0000 Subject: [PATCH] simplify (re)captcha test. svn path=/plone.app.discussion/trunk/; revision=28893 --- plone/app/discussion/vocabularies.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/plone/app/discussion/vocabularies.py b/plone/app/discussion/vocabularies.py index 155c8e7..31adf7d 100644 --- a/plone/app/discussion/vocabularies.py +++ b/plone/app/discussion/vocabularies.py @@ -3,22 +3,19 @@ from zope import component import zope.schema.interfaces import zope.schema.vocabulary -# XXX: REPLACE THIS!!! HAS_CAPTCHA=False -HAS_RECAPTCHA=False - try: - from plone.formwidget.captcha.widget import CaptchaFieldWidget + import plone.formwidget.captcha HAS_CAPTCHA = True except ImportError: pass +HAS_RECAPTCHA=False try: - from plone.formwidget.captcha.widget import ReCaptchaFieldWidget + import plone.formwidget.recaptcha HAS_RECAPTCHA = True except ImportError: pass -# XXX: REPLACE THIS!!! def captcha_vocabulary(context): """Vocabulary with all available captcha implementations.