Changeset 659
- Timestamp:
- 11/27/06 08:06:09
- Files:
-
- qPloneCaptchas/trunk/skins/plone_captchas/checkPIL.py (modified) (1 diff)
- qPloneCaptchas/trunk/skins/plone_captchas/getCaptchaType.py (added)
- qPloneCaptchas/trunk/skins/plone_captchas/prefs_captchas_setup.cpy (modified) (1 diff)
- qPloneCaptchas/trunk/skins/plone_captchas/prefs_captchas_setup_form.cpt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
qPloneCaptchas/trunk/skins/plone_captchas/checkPIL.py
r658 r659 1 ## Script (Python) "checkPIL.py" 2 ##bind container=container 3 ##bind context=context 4 ##bind namespace= 5 ##bind script=script 6 ##bind subpath=traverse_subpath 7 ##parameters=actions=None 8 ##title= 9 ## 1 10 from Products.qPloneCaptchas.config import havePIL 2 11 return havePIL qPloneCaptchas/trunk/skins/plone_captchas/prefs_captchas_setup.cpy
r658 r659 27 27 form = context.REQUEST.form 28 28 ct = form['static_captchas'] 29 29 30 if ct == 'static': 30 31 exchangeLayers('plone_captchas/dynamic', 'plone_captchas/static') qPloneCaptchas/trunk/skins/plone_captchas/prefs_captchas_setup_form.cpt
r658 r659 40 40 id="use_static_captchas" 41 41 type="radio" 42 tal:attributes="value ct;43 checked python:test(ct=='static', 'checked', '')"/>42 value="static" 43 tal:attributes="checked python:test(ct=='static', 'checked', '')"/> 44 44 <label for="use_static_captchas">Use static captchas</label> 45 45 <br /> … … 48 48 type="radio" 49 49 disabled="" 50 tal:attributes="value ct;51 checked python:test(ct=='dynamic', 'checked', '');50 value="dynamic" 51 tal:attributes="checked python:test(ct=='dynamic', 'checked', ''); 52 52 disabled python:test(context.checkPIL(), '', 'disabled');"/> 53 53 <label for="use_dynamic_captchas">Use dynamic captchas</label>
