Changeset 3606 in products for quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha/field.py
- Timestamp:
- Oct 25, 2012 10:12:14 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha/field.py
r3430 r3606 9 9 from Products.PloneFormGen.content.fieldsBase import BaseFormField 10 10 from Products.PloneFormGen.content.fieldsBase \ 11 11 import BaseFieldSchemaStringDefault 12 12 13 13 from quintagroup.pfg.captcha.config import PROJECTNAME … … 57 57 # set a preconfigured field as an instance attribute 58 58 self.fgField = StringField('fg_string_field', 59 searchable=0,60 required=1,61 write_permission=View,62 validators=('isCaptchaCorrect',),63 widget=CaptchaWidget(),64 )59 searchable=0, 60 required=1, 61 write_permission=View, 62 validators=('isCaptchaCorrect',), 63 widget=CaptchaWidget(), 64 ) 65 65 66 66 registerATCT(CaptchaField, PROJECTNAME)
Note: See TracChangeset
for help on using the changeset viewer.