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

Last change on this file since 2099 was 2099, checked in by mylan, 14 years ago

#174: added tests for CaptchaWidget?

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