Last change
on this file was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
File size:
760 bytes
|
Line | |
---|
1 | from Products.Transience.Transience import TransientObjectContainer |
---|
2 | from Globals import InitializeClass |
---|
3 | from AccessControl import ClassSecurityInfo |
---|
4 | |
---|
5 | class 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 | |
---|
20 | InitializeClass(CaptchaTool) |
---|
Note: See
TracBrowser
for help on using the repository browser.