diff options
| author | bwarsaw | 2002-12-02 14:12:29 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-12-02 14:12:29 +0000 |
| commit | c59e735aafd5feb956a8b11cdb90cbbfbe02a2f5 (patch) | |
| tree | e3ece4db09394933adbff7246547e378c801d34a | |
| parent | ee571157641bb7ff0c8a14b908d79597627f5370 (diff) | |
| download | mailman-c59e735aafd5feb956a8b11cdb90cbbfbe02a2f5.tar.gz mailman-c59e735aafd5feb956a8b11cdb90cbbfbe02a2f5.tar.zst mailman-c59e735aafd5feb956a8b11cdb90cbbfbe02a2f5.zip | |
| -rw-r--r-- | Mailman/Archiver/HyperDatabase.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Mailman/Archiver/HyperDatabase.py b/Mailman/Archiver/HyperDatabase.py index 3bdc3e63a..ab41b8247 100644 --- a/Mailman/Archiver/HyperDatabase.py +++ b/Mailman/Archiver/HyperDatabase.py @@ -197,9 +197,10 @@ class DumbBTree: class HyperDatabase(pipermail.Database): __super_addArticle = pipermail.Database.addArticle - def __init__(self, basedir): + def __init__(self, basedir, mlist): self.__cache = {} self.__currentOpenArchive = None # The currently open indices + self._mlist = mlist self.basedir = os.path.expanduser(basedir) # Recently added articles, indexed only by message ID self.changed={} @@ -282,6 +283,8 @@ class HyperDatabase(pipermail.Database): # get the pickled object out of the DumbBTree buf = self.articleIndex[msgid] article = self.__cache[msgid] = pickle.loads(buf) + # For upgrading older archives + article.setListIfUnset(self._mlist) else: article = self.__cache[msgid] return article |
