Changeset 3570 in products


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

PPP fixes

Location:
quintagroup.z3cform.captcha/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.z3cform.captcha/trunk/quintagroup/z3cform/captcha/__init__.py

    r2215 r3570  
    1 from field import Captcha 
    2 from widget import CaptchaWidget 
    3 from widget import CaptchaWidgetFactory 
     1from quintagroup.z3cform.catpcha import field 
     2from quintagroup.z3cform.captcha import widget 
     3 
     4Captcha = field.Captcha 
     5CaptchaWidget = widget.CaptchaWidget 
     6CaptchaWidgetFactory = widget.CaptchaWidgetFactory 
  • quintagroup.z3cform.captcha/trunk/quintagroup/z3cform/captcha/validator.py

    r3546 r3570  
    4646 
    4747            captcha_tool = getToolByName(context, 'portal_captchas') 
    48             if (enc != solution) or (captcha_tool.has_key(decrypted_key)) or (DateTime().timeTime() - float(date) > 3600): 
     48            if (enc != solution) or (captcha_tool.has_key(decrypted_key)) or \ 
     49               (DateTime().timeTime() - float(date) > 3600): 
    4950                raise ValueError(_(u'Please re-enter validation code.')) 
    5051            else: 
  • quintagroup.z3cform.captcha/trunk/setup.py

    r3551 r3570  
    66setup(name='quintagroup.z3cform.captcha', 
    77      version=version, 
    8       description="Captcha field for z3cform based on quintagroup.captcha.core package", 
     8      description="Captcha field for z3cform based on " 
     9                  "quintagroup.captcha.core package", 
    910      long_description=open("README.txt").read() + "\n" + 
    10                        open(os.path.join("docs", "HISTORY.txt")).read(), 
    11       # Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers 
    12       classifiers=[ 
    13         "Framework :: Plone", 
    14         "Programming Language :: Python", 
    15         "Topic :: Software Development :: Libraries :: Python Modules", 
    16         ], 
     11      open(os.path.join("docs", "HISTORY.txt")).read(), 
     12      classifiers=["Framework :: Plone", 
     13      "Programming Language :: Python", 
     14      "Topic :: Software Development :: Libraries :: Python Modules", ], 
    1715      keywords='plone z3c form captcha', 
    1816      author='Quintagroup', 
     
    4139      """, 
    4240      ) 
    43  
    44  
Note: See TracChangeset for help on using the changeset viewer.