diff options
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 |
