Changeset 659

Show
Ignore:
Timestamp:
11/27/06 08:06:09
Author:
crchemist
Message:

Changed method of defining of captcha type.

Files:

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## 
    110from Products.qPloneCaptchas.config import havePIL 
    211return havePIL 
  • qPloneCaptchas/trunk/skins/plone_captchas/prefs_captchas_setup.cpy

    r658 r659  
    2727form = context.REQUEST.form 
    2828ct = form['static_captchas'] 
     29 
    2930if ct == 'static': 
    3031    exchangeLayers('plone_captchas/dynamic', 'plone_captchas/static') 
  • qPloneCaptchas/trunk/skins/plone_captchas/prefs_captchas_setup_form.cpt

    r658 r659  
    4040                           id="use_static_captchas" 
    4141                           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', '')"/> 
    4444                    <label for="use_static_captchas">Use static captchas</label> 
    4545                    <br /> 
     
    4848                           type="radio" 
    4949                           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', ''); 
    5252                                           disabled python:test(context.checkPIL(), '', 'disabled');"/> 
    5353                    <label for="use_dynamic_captchas">Use dynamic captchas</label>