Last change
on this file since 1729 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
File size:
495 bytes
|
Line | |
---|
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',), |
---|
12 | used_for = ('Products.qPloneCaptchaField.content.CaptchaField',) |
---|
13 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.