|
Revision 665
(checked in by crchemist, 2 years ago)
|
Modified captchas tool installation to be compatible with Plone-2.0.5
|
- Property svn:eol-style set to
native
|
| 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) |
|---|