Last change
on this file since 3128 was
3128,
checked in by vmaksymiv, 13 years ago
|
pep8 fixes
|
File size:
896 bytes
|
Line | |
---|
1 | try: |
---|
2 | from App.class_init import InitializeClass |
---|
3 | except ImportError: |
---|
4 | from Globals import InitializeClass |
---|
5 | from AccessControl import ClassSecurityInfo |
---|
6 | from Products.Transience.Transience import TransientObjectContainer |
---|
7 | |
---|
8 | |
---|
9 | class CaptchaTool(TransientObjectContainer): |
---|
10 | """portal_captcha tool class |
---|
11 | """ |
---|
12 | meta_type = 'CaptchaTool' |
---|
13 | security = ClassSecurityInfo() |
---|
14 | security.declarePublic('addExpiredKey') |
---|
15 | |
---|
16 | def __init__(self, id='portal_captchas', title='', |
---|
17 | timeout_mins=60, addNotification=None, |
---|
18 | delNotification=None, limit=0, period_secs=60): |
---|
19 | TransientObjectContainer.__init__(self, id, title, timeout_mins, |
---|
20 | addNotification, delNotification, |
---|
21 | limit, period_secs) |
---|
22 | |
---|
23 | def addExpiredKey(self, key): |
---|
24 | self.new(key) |
---|
25 | |
---|
26 | InitializeClass(CaptchaTool) |
---|
Note: See
TracBrowser
for help on using the repository browser.