Ejemplo n.º 1
0
    def getCaptchaView(self):
        captchaView = Captcha(self.context, self.request)

        # Allow the image to not be cached in overlay
        image = captchaView.image_tag()
        image = image.replace('/image"', '/image?%s"' % str(uuid.uuid1()))
        captchaView.image_tag_hacked = image
        return captchaView