Changeset 7311 for main


Ignore:
Timestamp:
9 Dec 2011, 10:44:15 (13 years ago)
Author:
uli
Message:

Unfortunately, configurations are stored as attributes (makes it hard
to extend).

File:
1 edited

Legend:

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

    r7309 r7311  
    6868        if site is None:
    6969            return getUtility(ICaptcha)
    70         name = site.get('configuration', {}).get('captcha', u'')
     70        name = getattr(site.get('configuration', {}), 'captcha', u'')
    7171        return queryUtility(ICaptcha, name=name,
    7272                            default=getUtility(ICaptcha))
Note: See TracChangeset for help on using the changeset viewer.