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
RevLine 
[1]1from Products.Archetypes.Widget import StringWidget
2from Products.Archetypes.Registry import registerWidget
3
[2099]4CAPTCHA_MACRO = "captchaField_widget"
5
[3168]6
[1]7class CaptchaWidget(StringWidget):
8    _properties = StringWidget._properties.copy()
[3168]9    _properties.update({'macro': CAPTCHA_MACRO})
[1]10
11
12registerWidget(CaptchaWidget,
[3168]13               title='Captcha widget',
14               description=('Renders captcha image and string input',),
15               used_for=('quintagroup.pfg.captcha.field.CaptchaField',)
[2099]16              )
Note: See TracBrowser for help on using the repository browser.