Changeset 2098 in products for quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha/field.py
- Timestamp:
- Apr 9, 2010 11:09:48 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.pfg.captcha/trunk/quintagroup/pfg/captcha/field.py
r2091 r2098 15 15 16 16 CAPTCHA_ID = 'key' 17 HIDDEN_FIELDS = [ 18 'title', 19 'description', 20 'required', 21 'hidden', 22 'fgTDefault', 23 'fgTEnabled', 24 'fgDefault', 25 'fgTValidator'] 17 26 18 27 def finalizeCaptchaFieldSchema( schema ): 19 28 schema['title'].default= 'key' 20 for field in ('title', 21 'description', 22 'required', 23 'hidden', 24 'fgTDefault', 25 'fgTEnabled', 26 'fgDefault', 27 'fgTValidator'): 29 for field in HIDDEN_FIELDS: 28 30 schema[field].widget.visible = {'view':'invisible','edit':'invisible'} 29 31
Note: See TracChangeset
for help on using the changeset viewer.