Changeset 3571 in products for quintagroup.z3cform.captcha
- Timestamp:
- Oct 23, 2012 12:23:45 PM (12 years ago)
- Location:
- quintagroup.z3cform.captcha/trunk/quintagroup/z3cform/captcha
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.z3cform.captcha/trunk/quintagroup/z3cform/captcha/__init__.py
r3570 r3571 1 from quintagroup.z3cform.catpcha import field 2 from quintagroup.z3cform.captcha import widget 1 from quintagroup.z3cform.catpcha import field, widget 3 2 4 3 Captcha = field.Captcha -
quintagroup.z3cform.captcha/trunk/quintagroup/z3cform/captcha/tests.py
r3546 r3571 18 18 from Products.PloneTestCase import PloneTestCase as ptc 19 19 20 from quintagroup.captcha.core.utils import *20 from quintagroup.captcha.core.utils import decrypt, getWord, parseKey, ConversionError 21 21 from quintagroup.captcha.core.tests.base import testPatch 22 22 from quintagroup.captcha.core.tests.testWidget import addTestLayer -
quintagroup.z3cform.captcha/trunk/quintagroup/z3cform/captcha/validator.py
r3570 r3571 11 11 from z3c.form.validator import SimpleFieldValidator 12 12 13 from interfaces import ICaptcha13 from quintagroup.z3cform.captcha.interfaces import ICaptcha 14 14 15 15 _ = MessageFactory('quintagroup.z3cform.captcha') -
quintagroup.z3cform.captcha/trunk/quintagroup/z3cform/captcha/widget.py
r3545 r3571 34 34 return u"""<input type="hidden" value="%s" name="%shashkey" /> 35 35 %s 36 <img src="%s" alt="Enter the word"/>""" % (key, 37 self.form.prefix, 38 super(CaptchaWidget, self).render(), 39 image_url) 36 <img src="%s" alt="Enter the word"/>""" % ( 37 key, 38 self.form.prefix, 39 super(CaptchaWidget, self).render(), 40 image_url) 40 41 return super(CaptchaWidget, self).template(self) 41 42
Note: See TracChangeset
for help on using the changeset viewer.