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