From 6234f6f830b8dd69612786eb3203ef6d1a3b7e50 Mon Sep 17 00:00:00 2001 From: Rory McCann Date: Sat, 10 Jan 2009 23:12:32 +0000 Subject: [PATCH] imported recaptcha module correctly and used it to display the HTML --- __init__.py | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/__init__.py b/__init__.py index 1f3f7e1..5aa1ee8 100644 --- a/__init__.py +++ b/__init__.py @@ -17,7 +17,7 @@ from zine.utils import forms # Check do we have the recaptcha library installed try: - import recaptcha + from recaptcha.client import captcha have_recaptcha = True except ImportError: have_recaptcha = False @@ -167,20 +167,7 @@ def show_recaptcha_config(req): # return _('Comments Blocked by Akismet') def add_captcha(req, post): - return """ - - - - """ % {'pubkey': req.app.cfg['recaptcha_spam_filter/pubkey']} + return captcha.displayhtml(req.app.cfg['recaptcha_spam_filter/pubkey']) def setup(app, plugin): if not have_recaptcha: -- 2.11.4.GIT