source: products/quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha/widget.py @ 3606

Last change on this file since 3606 was 3606, checked in by vmaksymiv, 7 years ago

PPP fixes

  • Property svn:eol-style set to native
File size: 499 bytes
Line 
1from Products.Archetypes.Widget import StringWidget
2from Products.Archetypes.Registry import registerWidget
3
4CAPTCHA_MACRO = "captchaField_widget"
5
6
7class CaptchaWidget(StringWidget):
8    _properties = StringWidget._properties.copy()
9    _properties.update({'macro': CAPTCHA_MACRO})
10
11
12registerWidget(CaptchaWidget,
13               title='Captcha widget',
14               description=('Renders captcha image and string input',),
15               used_for=('quintagroup.pfg.captcha.field.CaptchaField',))
Note: See TracBrowser for help on using the repository browser.