diff options
| author | Barry Warsaw | 2009-01-05 00:54:19 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-01-05 00:54:19 -0500 |
| commit | 37c255b7b0c1b8ea10c8d24a44c8586de86ffcc6 (patch) | |
| tree | f2225cf1049360298cdaca89b6ca4458b6af3bcc /mailman/database/pending.py | |
| parent | f6d998b93b0dd8978eadc9abc4c3964e3fe66bf7 (diff) | |
| download | mailman-37c255b7b0c1b8ea10c8d24a44c8586de86ffcc6.tar.gz mailman-37c255b7b0c1b8ea10c8d24a44c8586de86ffcc6.tar.zst mailman-37c255b7b0c1b8ea10c8d24a44c8586de86ffcc6.zip | |
Diffstat (limited to 'mailman/database/pending.py')
| -rw-r--r-- | mailman/database/pending.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mailman/database/pending.py b/mailman/database/pending.py index 07e594253..6fe66f5fd 100644 --- a/mailman/database/pending.py +++ b/mailman/database/pending.py @@ -29,11 +29,11 @@ import random import hashlib import datetime +from lazr.config import as_timedelta from storm.locals import * from zope.interface import implements from zope.interface.verify import verifyObject -from mailman import Defaults from mailman.config import config from mailman.database.model import Model from mailman.interfaces.pending import ( @@ -87,7 +87,7 @@ class Pendings: verifyObject(IPendable, pendable) # Calculate the token and the lifetime. if lifetime is None: - lifetime = Defaults.PENDING_REQUEST_LIFE + lifetime = as_timedelta(config.pending_request_life) # Calculate a unique token. Algorithm vetted by the Timbot. time() # has high resolution on Linux, clock() on Windows. random gives us # about 45 bits in Python 2.2, 53 bits on Python 2.3. The time and |
