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