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
|
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 | |
---|
[3168] | 6 | |
---|
[1] | 7 | class CaptchaWidget(StringWidget): |
---|
| 8 | _properties = StringWidget._properties.copy() |
---|
[3168] | 9 | _properties.update({'macro': CAPTCHA_MACRO}) |
---|
[1] | 10 | |
---|
| 11 | |
---|
| 12 | registerWidget(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.