[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Stable update for python-recaptcha



Hi!

python-recaptcha  uses a  webservice  whose URL  have  changed. A  fixed
version has been uploaded to sid  but since the package in stable is not
usable anymore  because of  this change, I  have prepared an  upload for
stable.

Attached is the diff to the current version in squeeze. May I upload?

Index: debian/changelog
===================================================================
--- debian/changelog	(.../tags/1.0.5-1)	(revision 18404)
+++ debian/changelog	(.../branches/squeeze)	(revision 18404)
@@ -1,3 +1,10 @@
+python-recaptcha (1.0.5-1+squeeze1) stable; urgency=low
+
+  * Web service has moved from recaptcha.net to google.com.
+    Closes: #637880.
+
+ -- Vincent Bernat <bernat@debian.org>  Wed, 31 Aug 2011 08:44:24 +0200
+
 python-recaptcha (1.0.5-1) unstable; urgency=low
 
   * New upstream release.
Index: debian/patches/series
===================================================================
--- debian/patches/series	(.../tags/1.0.5-1)	(revision 0)
+++ debian/patches/series	(.../branches/squeeze)	(revision 18404)
@@ -0,0 +1 @@
+update-service-url.patch
Index: debian/patches/update-service-url.patch
===================================================================
--- debian/patches/update-service-url.patch	(.../tags/1.0.5-1)	(revision 0)
+++ debian/patches/update-service-url.patch	(.../branches/squeeze)	(revision 18404)
@@ -0,0 +1,82 @@
+Recaptcha service has moved from recaptcha.net to www.google.com.
+
+Old URL are still working but the corresponding SSL certificate has not been renewed.
+Closes: #637880.
+
+diff -Naur recaptcha-client-1.0.5/PKG-INFO recaptcha-client-1.0.6/PKG-INFO
+--- recaptcha-client-1.0.5/PKG-INFO	2009-10-28 22:48:51.000000000 +0100
++++ recaptcha-client-1.0.6/PKG-INFO	2011-04-12 21:08:50.000000000 +0200
+@@ -10,8 +10,8 @@
+         any imaging libraries because the CAPTCHA is served directly from reCAPTCHA.
+         Also allows you to securely obfuscate emails with Mailhide. This functionality
+         requires pycrypto. This library requires two types of API keys. If you'd like
+-        to use the CAPTCHA, you'll need a key from http://recaptcha.net/api/getkey.
+-        For Mailhide, you'll need a key from http://mailhide.recaptcha.net/apikey.
++        to use the CAPTCHA, you'll need a key from https://www.google.com/recaptcha/admin/create.
++        For Mailhide, you'll need a key from http://www.google.com/recaptcha/mailhide/apikey.
+         
+         The trunk can be checked out from
+         http://recaptcha.googlecode.com/svn/trunk/recaptcha-plugins/python,
+diff -Naur recaptcha-client-1.0.5/recaptcha/client/captcha.py recaptcha-client-1.0.6/recaptcha/client/captcha.py
+--- recaptcha-client-1.0.5/recaptcha/client/captcha.py	2009-07-30 21:08:35.000000000 +0200
++++ recaptcha-client-1.0.6/recaptcha/client/captcha.py	2011-04-12 20:53:27.000000000 +0200
+@@ -1,8 +1,8 @@
+ import urllib2, urllib
+ 
+-API_SSL_SERVER="https://api-secure.recaptcha.net";
+-API_SERVER="http://api.recaptcha.net";
+-VERIFY_SERVER="api-verify.recaptcha.net"
++API_SSL_SERVER="https://www.google.com/recaptcha/api";
++API_SERVER="http://www.google.com/recaptcha/api";
++VERIFY_SERVER="www.google.com"
+ 
+ class RecaptchaResponse(object):
+     def __init__(self, is_valid, error_code=None):
+@@ -73,7 +73,7 @@
+             })
+ 
+     request = urllib2.Request (
+-        url = "http://%s/verify"; % VERIFY_SERVER,
++        url = "http://%s/recaptcha/api/verify"; % VERIFY_SERVER,
+         data = params,
+         headers = {
+             "Content-type": "application/x-www-form-urlencoded",
+--- recaptcha-client-1.0.5/recaptcha/client/mailhide.py	2009-07-30 21:08:35.000000000 +0200
++++ recaptcha-client-1.0.6/recaptcha/client/mailhide.py	2011-04-12 20:53:27.000000000 +0200
+@@ -6,7 +6,7 @@
+ except:
+     raise Exception ("You need the pycrpyto library: http://cheeseshop.python.org/pypi/pycrypto/";)
+ 
+-MAIL_HIDE_BASE="http://mailhide.recaptcha.net";
++MAIL_HIDE_BASE="http://www.google.com/recaptcha/mailhide";
+ 
+ def asurl (email,
+                  public_key,
+diff -Naur recaptcha-client-1.0.5/recaptcha_client.egg-info/PKG-INFO recaptcha-client-1.0.6/recaptcha_client.egg-info/PKG-INFO
+--- recaptcha-client-1.0.5/recaptcha_client.egg-info/PKG-INFO	2009-10-28 22:48:51.000000000 +0100
++++ recaptcha-client-1.0.6/recaptcha_client.egg-info/PKG-INFO	2011-04-12 21:08:50.000000000 +0200
+@@ -10,8 +10,8 @@
+         any imaging libraries because the CAPTCHA is served directly from reCAPTCHA.
+         Also allows you to securely obfuscate emails with Mailhide. This functionality
+         requires pycrypto. This library requires two types of API keys. If you'd like
+-        to use the CAPTCHA, you'll need a key from http://recaptcha.net/api/getkey.
+-        For Mailhide, you'll need a key from http://mailhide.recaptcha.net/apikey.
++        to use the CAPTCHA, you'll need a key from https://www.google.com/recaptcha/admin/create.
++        For Mailhide, you'll need a key from http://www.google.com/recaptcha/mailhide/apikey.
+         
+         The trunk can be checked out from
+         http://recaptcha.googlecode.com/svn/trunk/recaptcha-plugins/python,
+diff -Naur recaptcha-client-1.0.5/setup.py recaptcha-client-1.0.6/setup.py
+--- recaptcha-client-1.0.5/setup.py	2009-10-28 22:46:57.000000000 +0100
++++ recaptcha-client-1.0.6/setup.py	2011-04-12 20:53:27.000000000 +0200
+@@ -16,8 +16,8 @@
+ any imaging libraries because the CAPTCHA is served directly from reCAPTCHA.
+ Also allows you to securely obfuscate emails with Mailhide. This functionality
+ requires pycrypto. This library requires two types of API keys. If you'd like
+-to use the CAPTCHA, you'll need a key from http://recaptcha.net/api/getkey.
+-For Mailhide, you'll need a key from http://mailhide.recaptcha.net/apikey.
++to use the CAPTCHA, you'll need a key from https://www.google.com/recaptcha/admin/create.
++For Mailhide, you'll need a key from http://www.google.com/recaptcha/mailhide/apikey.
+ 
+ The trunk can be checked out from
+ http://recaptcha.googlecode.com/svn/trunk/recaptcha-plugins/python,
-- 
Vincent Bernat ☯ http://vincent.bernat.im

 /* Nobody will ever see this message :-) */
panic("Cannot initialize video hardware\n");
	2.0.38 /usr/src/linux/arch/m68k/atari/atafb.c

Attachment: pgpXEOFbheS9Z.pgp
Description: PGP signature


Reply to: