Changeset 7292 for main/waeup.sirp/trunk


Ignore:
Timestamp:
6 Dec 2011, 16:46:00 (13 years ago)
Author:
uli
Message:

Fix default setting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/captcha.py

    r7289 r7292  
    107107# Global captcha chooser
    108108#
    109 from zope.publisher.browser import TestRequest
    110109class CaptchaChooser(grok.GlobalUtility):
    111110
     
    139138        if site is None:
    140139            return getUtility(ICaptcha)
    141         name = site.get('configuration', None).get('captcha', u'')
     140        name = site.get('configuration', {}).get('captcha', u'')
    142141        return queryUtility(ICaptcha, name=name,
    143142                            default=getUtility(ICaptcha))
Note: See TracChangeset for help on using the changeset viewer.