Changeset 8127


Ignore:
Timestamp:
12 Apr 2012, 10:14:01 (13 years ago)
Author:
uli
Message:

Need theme when rendering a reCaptcha.

File:
1 edited

Legend:

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

    r7819 r8127  
    2828from zope.interface import Interface
    2929from zope.publisher.interfaces.http import IHTTPRequest
    30 from waeup.kofa.browser import KofaPage
     30from waeup.kofa.browser import KofaPage, resources
    3131from waeup.kofa.browser.interfaces import (
    3232    ICaptchaRequest, ICaptchaResponse, ICaptcha, ICaptchaConfig,
     
    228228    #: name of challenge field in HTTP request
    229229    chal_field = 'recaptcha_challenge_field'
     230    #: resource to set theme and other options
     231    theme = resources.recaptcha_white
    230232
    231233    # Do not use the following keys in productive environments!  As
     
    291293        form).
    292294        """
     295        if self.theme is not None:
     296            self.theme.need()
    293297        error_param = ''
    294298        if error_code:
Note: See TracChangeset for help on using the changeset viewer.