From 0f63bc5345ac4fac31fc2742b77e593a350df688 Mon Sep 17 00:00:00 2001 From: Hanno Schlichting Date: Thu, 2 Sep 2010 10:35:40 +0000 Subject: [PATCH] Whitespace, fix permission name and fix interface declaration. svn path=/plone.formwidget.captcha/trunk/; revision=39602 --- .../formwidget/captcha/browser/configure.zcml | 11 +++--- .../formwidget/captcha/browser/interfaces.py | 35 ++++++++++--------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/plone/formwidget/captcha/browser/configure.zcml b/plone/formwidget/captcha/browser/configure.zcml index 87d55c9..09222f3 100644 --- a/plone/formwidget/captcha/browser/configure.zcml +++ b/plone/formwidget/captcha/browser/configure.zcml @@ -2,18 +2,17 @@ xmlns="http://namespaces.zope.org/zope" xmlns:browser="http://namespaces.zope.org/browser" i18n_domain="collective.captcha"> - + - + class=".captcha.Captcha"> + - + diff --git a/plone/formwidget/captcha/browser/interfaces.py b/plone/formwidget/captcha/browser/interfaces.py index 371883e..3c733d3 100644 --- a/plone/formwidget/captcha/browser/interfaces.py +++ b/plone/formwidget/captcha/browser/interfaces.py @@ -1,38 +1,39 @@ from zope.interface import Interface + class ICaptchaView(Interface): """Captcha generating and verifying view - - Usage: - + + Usage: + - Use the view from a page to generate an image tag and/or an audio URL. Use the 'image_tag' and 'audio_url' methods for these. - + - Place the image tag and/or audio url in the page - + - The image tag will load the captcha for the user, or the user will use the audio url to listen to the aural captcha. - + - The user will identify the word, and tell the server through a form submission. - + - Use the user input to verify. - + The view will ensure that captcha state is preserved until verification has taken place. The image tag and audio url for a given instance of the captcha view will give the same word. - + """ - - def image_tag(self): + + def image_tag(): """Generate an image tag linking to a captcha""" - - def audio_url(self): + + def audio_url(): """A URL for an aural captcha""" - - def verify(self, input): + + def verify(input): """Verify the user-supplied input. - + Returns a boolean value indicating if the input matched - + """