Fix verify method for empty string input values. This is necessary for plone.app.discussion 1.0b5 compatibility.

svn path=/plone.formwidget.captcha/trunk/; revision=37130
This commit is contained in:
Timo Stollenwerk 2010-06-10 09:07:11 +00:00
parent 92264f81fb
commit c0a14efbb1
3 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,13 @@
Changelog
=========
1.0b2 - unreleased
------------------
* Fix verify method for empty string input values. This is necessary for
plone.app.discussion 1.0b5 compatibility.
[timo]
1.0b1 - 2010-06-02
------------------

View File

@ -104,6 +104,8 @@ class Captcha(BrowserView):
return self._url('audio')
def verify(self, input):
if not input:
return False
result = False
try:
for word in self._generate_words():

View File

@ -1,6 +1,6 @@
from setuptools import setup, find_packages
version = '1.0b1'
version = '1.0b2'
setup(name='plone.formwidget.captcha',
version=version,