Last change
on this file since 1871 was
1871,
checked in by liebster, 14 years ago
|
Revert 2726 to 2589 commits for tagging plone-3 compatible version
|
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.