Ignore:
Timestamp:
Mar 19, 2010 10:35:58 AM (14 years ago)
Author:
mylan
Message:

#172: Fix 'plone_captchas' references to 'captcha_core'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.captcha.core/trunk/quintagroup/captcha/core/skins/captcha_core/getCaptchaType.py

    r797 r1955  
    88##title= 
    99## 
     10import string 
    1011from Products.CMFCore.utils import getToolByName 
    11 import string 
     12from quintagroup.captcha.core.config import LAYER_DYNAMIC_CAPTCHAS 
     13from quintagroup.captcha.core.config import LAYER_STATIC_CAPTCHAS 
     14 
    1215skinsTool = getToolByName(context, 'portal_skins') 
    1316default_skin = skinsTool.getDefaultSkin() 
     
    1518path = map( string.strip, string.split( path,',' ) ) 
    1619 
    17 if 'plone_captchas/static' in path: 
     20if LAYER_STATIC_CAPTCHAS in path: 
    1821    return 'static' 
    19 elif 'plone_captchas/dynamic' in path: 
     22elif LAYER_DYNAMIC_CAPTCHAS in path: 
    2023    return 'dynamic' 
    2124else: 
Note: See TracChangeset for help on using the changeset viewer.