Check for collective.akismet to detect akismet plugin, not for the Python akismet package.

svn path=/plone.app.discussion/trunk/; revision=37762
This commit is contained in:
Timo Stollenwerk 2010-07-13 09:22:05 +00:00
parent 2dbc337fc7
commit 31c0f7b459

View File

@ -21,7 +21,7 @@ except ImportError:
HAS_AKISMET = False
try:
from akismet import Akismet, AkismetError
import collective.akismet
HAS_AKISMET = True
except ImportError:
pass