Changeset 3571 in products


Ignore:
Timestamp:
Oct 23, 2012 12:23:45 PM (7 years ago)
Author:
vmaksymiv
Message:

PPP fixes

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 
     1from quintagroup.z3cform.catpcha import field, widget 
    32 
    43Captcha = field.Captcha 
  • quintagroup.z3cform.captcha/trunk/quintagroup/z3cform/captcha/tests.py

    r3546 r3571  
    1818from Products.PloneTestCase import PloneTestCase as ptc 
    1919 
    20 from quintagroup.captcha.core.utils import * 
     20from quintagroup.captcha.core.utils import decrypt, getWord, parseKey, ConversionError 
    2121from quintagroup.captcha.core.tests.base import testPatch 
    2222from quintagroup.captcha.core.tests.testWidget import addTestLayer 
  • quintagroup.z3cform.captcha/trunk/quintagroup/z3cform/captcha/validator.py

    r3570 r3571  
    1111from z3c.form.validator import SimpleFieldValidator 
    1212 
    13 from interfaces import ICaptcha 
     13from quintagroup.z3cform.captcha.interfaces import ICaptcha 
    1414 
    1515_ = MessageFactory('quintagroup.z3cform.captcha') 
  • quintagroup.z3cform.captcha/trunk/quintagroup/z3cform/captcha/widget.py

    r3545 r3571  
    3434        return u"""<input type="hidden" value="%s" name="%shashkey" /> 
    3535                   %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) 
    4041        return super(CaptchaWidget, self).template(self) 
    4142 
Note: See TracChangeset for help on using the changeset viewer.