Update of /cvsroot/mailman/mailman/Mailman/Archiver
In directory sc8-pr-cvs1:/tmp/cvs-serv26823

Modified Files:
        Archiver.py 
Log Message:
ExternalArchive(): Add %(hostname)s to the substitution strings
allowed in the PUBLIC_EXTERNAL_ARCHIVER and_EXTERNAL_ARCHIVER
variables.


Index: Archiver.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Archiver/Archiver.py,v
retrieving revision 2.28
retrieving revision 2.29
diff -u -d -r2.28 -r2.29
--- Archiver.py 12 Nov 2002 21:05:38 -0000      2.28
+++ Archiver.py 26 Jun 2003 15:01:40 -0000      2.29
@@ -1,4 +1,4 @@
-# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2003 by the Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -166,7 +166,9 @@
             raise
 
     def ExternalArchive(self, ar, txt):
-        d = SafeDict({'listname': self.internal_name()})
+        d = SafeDict({'listname': self.internal_name(),
+                      'hostname': self.host_name,
+                      })
         cmd = ar % d
         extarch = os.popen(cmd, 'w')
         extarch.write(txt)



_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-checkins

Reply via email to