------------------------------------------------------------
revno: 1369
fixes bug: https://launchpad.net/bugs/1082711
committer: Mark Sapiro <msap...@value.net>
branch nick: 2.1
timestamp: Sat 2012-11-24 11:15:54 -0800
message:
  list_lists now has an option to list only lists with public archives.
  (LP: 1082711)
modified:
  NEWS
  bin/list_lists


--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1

Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'NEWS'
--- NEWS	2012-11-24 19:05:25 +0000
+++ NEWS	2012-11-24 19:15:54 +0000
@@ -18,6 +18,9 @@
     - The name of the mailmanctl master lock file is now congigurable via the
       mm_cfg.py setting MASTER_LOCK_FILE.  (LP: 1082308)
 
+    - list_lists now has an option to list only lists with public archives.
+      (LP: 1082711)
+
   i18n
 
     - German message catalog has been updated per Ralf Hildebrandt.

=== modified file 'bin/list_lists'
--- bin/list_lists	2005-08-27 01:40:17 +0000
+++ bin/list_lists	2012-11-24 19:15:54 +0000
@@ -25,6 +25,9 @@
     -a / --advertised
         List only those mailing lists that are publically advertised
 
+    -p / --public-archive
+        List only those lists with public archives.
+
     --virtual-host-overview=domain
     -V domain
         List only those mailing lists that are homed to the given virtual
@@ -65,14 +68,15 @@
 
 def main():
     try:
-        opts, args = getopt.getopt(sys.argv[1:], 'abV:h',
-                                   ['advertised', 'bare',
+        opts, args = getopt.getopt(sys.argv[1:], 'apbV:h',
+                                   ['advertised', 'public-archive', 'bare',
                                     'virtual-host-overview=',
                                     'help'])
     except getopt.error, msg:
         usage(1, msg)
 
     advertised = 0
+    public = 0
     vhost = None
     bare = 0
     for opt, arg in opts:
@@ -80,6 +84,8 @@
             usage(0)
         elif opt in ('-a', '--advertised'):
             advertised = 1
+        elif opt in ('-p', '--public-archive'):
+            public = 1
         elif opt in ('-V', '--virtual-host-overview'):
             vhost = arg
         elif opt in ('-b', '--bare'):
@@ -94,6 +100,8 @@
         mlist = MailList.MailList(n, lock=0)
         if advertised and not mlist.advertised:
             continue
+        if public and mlist.archive_private:
+            continue
         if vhost and mm_cfg.VIRTUAL_HOST_OVERVIEW and \
                vhost.find(mlist.web_page_url) == -1 and \
                mlist.web_page_url.find(vhost) == -1:

_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to