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

Last change on this file since 3168 was 3168, checked in by vmaksymiv, 13 years ago

pep8, pyflakes fixes

  • Property svn:eol-style set to native
File size: 514 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',)
16              )
Note: See TracBrowser for help on using the repository browser.