source: products/qPloneCaptchas/branches/plone-3.2/CaptchaTool.py @ 3664

Last change on this file since 3664 was 1, checked in by myroslav, 18 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 760 bytes
Line 
1from Products.Transience.Transience import TransientObjectContainer
2from Globals import InitializeClass
3from AccessControl import ClassSecurityInfo
4
5class CaptchaTool(TransientObjectContainer):
6    """portal_captcha tool class
7    """
8    meta_type = 'CaptchaTool'
9    security = ClassSecurityInfo()
10    security.declarePublic('addExpiredKey')
11
12    def __init__(self, id='portal_captchas', title='', timeout_mins=60, addNotification=None,
13                 delNotification=None, limit=0, period_secs=60):
14        TransientObjectContainer.__init__(self, id, title, timeout_mins, addNotification,
15                                          delNotification, limit, period_secs)
16
17    def addExpiredKey(self, key):
18        self.new(key)
19
20InitializeClass(CaptchaTool)
Note: See TracBrowser for help on using the repository browser.