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

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