Changeset 1955 in products for quintagroup.captcha.core/trunk/quintagroup/captcha/core/skins/captcha_core/getCaptchaType.py
- Timestamp:
- Mar 19, 2010 10:35:58 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.captcha.core/trunk/quintagroup/captcha/core/skins/captcha_core/getCaptchaType.py
r797 r1955 8 8 ##title= 9 9 ## 10 import string 10 11 from Products.CMFCore.utils import getToolByName 11 import string 12 from quintagroup.captcha.core.config import LAYER_DYNAMIC_CAPTCHAS 13 from quintagroup.captcha.core.config import LAYER_STATIC_CAPTCHAS 14 12 15 skinsTool = getToolByName(context, 'portal_skins') 13 16 default_skin = skinsTool.getDefaultSkin() … … 15 18 path = map( string.strip, string.split( path,',' ) ) 16 19 17 if 'plone_captchas/static'in path:20 if LAYER_STATIC_CAPTCHAS in path: 18 21 return 'static' 19 elif 'plone_captchas/dynamic'in path:22 elif LAYER_DYNAMIC_CAPTCHAS in path: 20 23 return 'dynamic' 21 24 else:
Note: See TracChangeset
for help on using the changeset viewer.