source: products/qPloneCaptchas/tags/0.8/skins/plone_captchas/getCaptcha.py @ 1637

Last change on this file since 1637 was 1, checked in by myroslav, 19 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 380 bytes
Line 
1## Script (Python) "getCaptcha"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=
8##title=
9from DateTime import DateTime
10from Products.qPloneCaptchas.utils import encrypt
11purl = context.portal_url()
12date = str(DateTime().timeTime())
13key = encrypt('pAss'+date)
14return {'key':key, 'evalkey':date}
Note: See TracBrowser for help on using the repository browser.