Changeset 3570 in products
- Timestamp:
- Oct 23, 2012 12:10:14 PM (12 years ago)
- 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 1 from quintagroup.z3cform.catpcha import field 2 from quintagroup.z3cform.captcha import widget 3 4 Captcha = field.Captcha 5 CaptchaWidget = widget.CaptchaWidget 6 CaptchaWidgetFactory = widget.CaptchaWidgetFactory -
quintagroup.z3cform.captcha/trunk/quintagroup/z3cform/captcha/validator.py
r3546 r3570 46 46 47 47 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): 49 50 raise ValueError(_(u'Please re-enter validation code.')) 50 51 else: -
quintagroup.z3cform.captcha/trunk/setup.py
r3551 r3570 6 6 setup(name='quintagroup.z3cform.captcha', 7 7 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", 9 10 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", ], 17 15 keywords='plone z3c form captcha', 18 16 author='Quintagroup', … … 41 39 """, 42 40 ) 43 44
Note: See TracChangeset
for help on using the changeset viewer.