Changeset 3618 in products for quintagroup.captcha.core/trunk/quintagroup/captcha/core/skins/captcha_core/static/getCaptchaImage.py
- Timestamp:
- Feb 11, 2013 11:12:59 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.captcha.core/trunk/quintagroup/captcha/core/skins/captcha_core/static/getCaptchaImage.py
r1954 r3618 10 10 getWord, parseKey 11 11 12 hk = context.REQUEST.traverse_subpath[0] 13 dk = decrypt(context.captcha_key, hk) 12 try: 13 hk = context.REQUEST.traverse_subpath[0] 14 except IndexError: 15 return 16 try: 17 dk = decrypt(context.captcha_key, hk) 18 except: 19 return 14 20 key = parseKey(dk)['key'] 15 img = getattr(context, '%s.jpg' % key) 21 try: 22 img = getattr(context, '%s.jpg' % key) 23 except AttributeError: 24 return 16 25 return img.index_html(context.REQUEST, context.REQUEST.RESPONSE)
Note: See TracChangeset
for help on using the changeset viewer.