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 pass
try: try:
from plone.formwidget.recaptcha.validator import WrongCaptchaCode from plone.formwidget.recaptcha.validator import WrongCaptchaCode # noqa
except ImportError: except ImportError:
pass pass

View File

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

View File

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

View File

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