From 79afb31400c518829b9af01c6ec7f6cce51319f1 Mon Sep 17 00:00:00 2001 From: mailman Date: Fri, 3 Apr 1998 01:35:02 +0000 Subject: .ArchiveFileName(): use the list values, not the defaults! Needing to set one of our internal lists to a dir totally outside the view of the archiver, i realized this was not working right. Still, there is no way to set the values from the web interface - they have to be set intrusively, by loading the list in the interpreter and setting the new values by hand. This may be something to enable in the site-admin interface... --- modules/mm_archive.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'modules/mm_archive.py') diff --git a/modules/mm_archive.py b/modules/mm_archive.py index 5c572c751..941ab97ac 100644 --- a/modules/mm_archive.py +++ b/modules/mm_archive.py @@ -12,6 +12,10 @@ class Archiver: self.archive = 1 # 0=public, 1=private: self.archive_private = mm_cfg.DEFAULT_ARCHIVE_PRIVATE + # Though the archive file dirs are instance vars, they are not + # settable from the web interface. If you REALLY want to redirect + # something to a different dir, you can set the member vars by + # hand, from the python interpreter! self.public_archive_file_dir = mm_cfg.PUBLIC_ARCHIVE_FILE_DIR self.private_archive_file_dir = mm_cfg.PRIVATE_ARCHIVE_FILE_DIR self.archive_directory = os.path.join(mm_cfg.HTML_DIR, "archives/%s" % @@ -107,10 +111,10 @@ class Archiver: def ArchiveFileName(self): """The mbox name where messages are left for archive construction.""" if self.archive_private: - return os.path.join(mm_cfg.PRIVATE_ARCHIVE_FILE_DIR, + return os.path.join(self.private_archive_file_dir, self._internal_name) else: - return os.path.join(mm_cfg.PUBLIC_ARCHIVE_FILE_DIR, + return os.path.join(self.public_archive_file_dir, self._internal_name) def ArchiveFile(self, afn): """Open (creating, if necessary) the named archive file.""" -- cgit v1.2.3-70-g09d2