Last change
on this file since 3606 was
3606,
checked in by vmaksymiv, 10 years ago
|
PPP fixes
|
-
Property svn:eol-style set to
native
|
File size:
499 bytes
|
Line | |
---|
1 | from Products.Archetypes.Widget import StringWidget |
---|
2 | from Products.Archetypes.Registry import registerWidget |
---|
3 | |
---|
4 | CAPTCHA_MACRO = "captchaField_widget" |
---|
5 | |
---|
6 | |
---|
7 | class CaptchaWidget(StringWidget): |
---|
8 | _properties = StringWidget._properties.copy() |
---|
9 | _properties.update({'macro': CAPTCHA_MACRO}) |
---|
10 | |
---|
11 | |
---|
12 | registerWidget(CaptchaWidget, |
---|
13 | title='Captcha widget', |
---|
14 | description=('Renders captcha image and string input',), |
---|
15 | used_for=('quintagroup.pfg.captcha.field.CaptchaField',)) |
---|
Note: See
TracBrowser
for help on using the repository browser.