This commit is contained in:
Timo Stollenwerk 2013-04-18 15:51:57 +02:00
parent 0a8cd01922
commit b151244138
4 changed files with 6 additions and 7 deletions

View File

@ -32,7 +32,7 @@ except ImportError:
pass
try:
from plone.formwidget.recaptcha.validator import WrongCaptchaCode
from plone.formwidget.recaptcha.validator import WrongCaptchaCode # noqa
except ImportError:
pass

View File

@ -9,7 +9,7 @@ from plone.app.testing import FunctionalTesting
from zope.configuration import xmlconfig
try:
import plone.app.collection
import plone.app.collection # noqa
COLLECTION_TYPE = "Collection"
except:
COLLECTION_TYPE = "Topic"

View File

@ -6,4 +6,3 @@ from plone.app.discussion.interfaces import IDiscussionSettings
def update_registry(context):
registry = getUtility(IRegistry)
registry.registerInterface(IDiscussionSettings)

View File

@ -6,28 +6,28 @@ from plone.app.discussion.interfaces import _
HAS_CAPTCHA = False
try:
import plone.formwidget.captcha
import plone.formwidget.captcha # noqa
HAS_CAPTCHA = True # pragma: no cover
except ImportError:
pass
HAS_RECAPTCHA = False
try:
import plone.formwidget.recaptcha
import plone.formwidget.recaptcha # noqa
HAS_RECAPTCHA = True # pragma: no cover
except ImportError:
pass
HAS_AKISMET = False
try:
import collective.akismet
import collective.akismet # noqa
HAS_AKISMET = True # pragma: no cover
except ImportError:
pass
HAS_NOROBOTS = False
try:
import collective.z3cform.norobots
import collective.z3cform.norobots # noqa
HAS_NOROBOTS = True # pragma: no cover
except ImportError:
pass