This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This is a captcha support for Silva. It works with the help of skimpyGimpy.

After installing the extension, you can either use a zeam.form widget, a Formulator widget or ask the captcha directly.

You can get the captcha image in your template the following way:

<tal:captcha tal:define="captcha nocall:here/@@captcha"
             tal:content="structure captcha/image_tag">
</tal:captcha>

You can get the captcha as a sound file like this:

<div class="captchaAudio"
     tal:define="captcha nocall:here/@@captcha">
   <a href="#" target="_blank"
      tal:attributes="href captcha/audio_url">Audio version</a>
</div>

You can validate an captcha entry in Python like this:

from zope.component import getMultiAdapter


captcha = getMultiAdapter((self.context, self.request), name='captcha')
if not captcha.verify(input):
    # Bad value
else:
    # Good value

This extension require at least Silva 2.3 or higher. For previous version of Silva, you can use previous versions of the extension.

Use in Python Script

In your Python Script/Code Sources, you can use for example:

from silva.captcha import validate

request = context.REQUEST
input = request.form.get('captcha_field', None)
if not validate(context, request, input):
    # Bad value
else:
    # Good value

This will validate (or not) the input of the captcha.

Code repository

You can find the code of this extension in Git: https://github.com/silvacms/silva.captcha.

Changelog

1.3.1 (2013/05/23)

  • Update generated img to pass validation.

1.3 (2010/10/18)

  • Don’t rely anymore on collective.captcha: the implementation is now done here. This fix compatibility with Zope 2.12. This implementation rely on default Silva secret service, and don’t require anymore any installation task. It requires at least Silva 2.3.
  • Add a Captcha field and a Captcha widget for zeam.form.
  • This extension is now grokked.

1.2.1 (2009/11/18)

  • Fix tests if GenericSetup is available in the product folder.

1.2 (2009/08/17)

  • Added Formulator field to easily add a captcha to Formulator forms.
  • Fix installation in Silva 2.2.

1.1 (2008/11/12)

  • Add a validate method for Python Scripts and Code sources.
  • Don’t make Silva Root become a local site if it’s already the case (i.e. Silva 2.2).

1.0.1 (2008/06/04)

  • Fix broken extension uninstall,
  • Add simple test to test extension install/uninstall.

1.0 (2008/05/27)

  • Initial release.
Release History

Release History

1.3.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.3

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.2.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
silva.captcha-1.3.1.tar.gz (583.7 kB) Copy SHA256 Checksum SHA256 Source Dec 16, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting