ATptcha
Category: Fields and widgets
—
Other products by this author
Current release
No stable release available yet.
If you are interested in getting the source code of this project, you can get it from the code repository.
Experimental releases
There are no experimental releases available at the moment.
Project Description
- Project resources
Sometimes you might want a Captcha in an AT object, and rather than futzing with base_edit's form controller tragedy, you can now just add a captcha widget. If you want to use a Captcha in a Page Template, you do NOT need ATptcha. PloneCaptcha does this out of the box.
This may be a bit strange in implementation, because the value of the field is written to your type (irrelevant) and will show up if you re-edit the object, causing the user to have to re-captcha. Ah well, it's not perfect, but it's better than a spam-filled site.
Requires PloneCaptcha
StringField('captcha',
regfield=1,
required=True,
widget = CaptchaWidget(
description="This helps us prevent automated spamming.",
label="Verification Code",
label_msgid='captcha_label',
description_msgid='captcha_help',
i18n_domain='captcha',
visible={'view':'invisible',},
),
validators='CaptchaMatch',
),