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
|
Rev | Line | |
---|
[1] | 1 | from Products.Archetypes.Widget import StringWidget |
---|
| 2 | from Products.Archetypes.Registry import registerWidget |
---|
| 3 | |
---|
[2099] | 4 | CAPTCHA_MACRO = "captchaField_widget" |
---|
| 5 | |
---|
[1] | 6 | class CaptchaWidget(StringWidget): |
---|
| 7 | _properties = StringWidget._properties.copy() |
---|
[2099] | 8 | _properties.update( {'macro' : CAPTCHA_MACRO} ) |
---|
[1] | 9 | |
---|
| 10 | |
---|
| 11 | registerWidget(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.