diff options
Diffstat (limited to 'mailman/database/pending.py')
| -rw-r--r-- | mailman/database/pending.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mailman/database/pending.py b/mailman/database/pending.py index 31cc4e285..ff794c83c 100644 --- a/mailman/database/pending.py +++ b/mailman/database/pending.py @@ -1,4 +1,4 @@ -# Copyright (C) 2007-2008 by the Free Software Foundation, Inc. +# Copyright (C) 2007-2009 by the Free Software Foundation, Inc. # # This file is part of GNU Mailman. # @@ -27,7 +27,8 @@ from storm.locals import * from zope.interface import implements from zope.interface.verify import verifyObject -from mailman.configuration import config +from mailman import Defaults +from mailman.config import config from mailman.database.model import Model from mailman.interfaces import ( IPendable, IPended, IPendedKeyValue, IPendings) @@ -79,7 +80,7 @@ class Pendings(object): verifyObject(IPendable, pendable) # Calculate the token and the lifetime. if lifetime is None: - lifetime = config.PENDING_REQUEST_LIFE + lifetime = Defaults.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 |
