Changeset 2099 in products for quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha/widget.py
- Timestamp:
- Apr 9, 2010 12:19:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha/widget.py
r2084 r2099 2 2 from Products.Archetypes.Registry import registerWidget 3 3 4 CAPTCHA_MACRO = "captchaField_widget" 5 4 6 class CaptchaWidget(StringWidget): 5 7 _properties = StringWidget._properties.copy() 6 _properties.update( {'macro' : "captchaField_widget"} )8 _properties.update( {'macro' : CAPTCHA_MACRO} ) 7 9 8 10 … … 10 12 title = 'Captcha widget', 11 13 description= ('Renders captcha image and string input',), 12 used_for = ('quintagroup.pfg.captcha. content.CaptchaField',)14 used_for = ('quintagroup.pfg.captcha.field.CaptchaField',) 13 15 )
Note: See TracChangeset
for help on using the changeset viewer.