Revision: 8139
http://svn.sourceforge.net/mailman/?rev=8139&view=rev
Author: bwarsaw
Date: 2007-01-07 20:13:20 -0800 (Sun, 07 Jan 2007)
Log Message:
-----------
Change the semantics of the -f and -b flags. Now -f prints the fully
qualified list name, and it is no longer incompatible with -b (which just
turns off the description).
Modified Paths:
--------------
trunk/mailman/Mailman/bin/list_lists.py
Modified: trunk/mailman/Mailman/bin/list_lists.py
===================================================================
--- trunk/mailman/Mailman/bin/list_lists.py 2007-01-08 04:12:18 UTC (rev
8138)
+++ trunk/mailman/Mailman/bin/list_lists.py 2007-01-08 04:13:20 UTC (rev
8139)
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2006 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2007 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
@@ -51,8 +51,7 @@
parser.add_option('-f', '--full',
default=False, action='store_true',
help=_("""\
-Print the full list name, including the posting address. This option is
-ignored when -b is given."""))
+Print the full list name, including the posting address."""))
parser.add_option('-C', '--config',
help=_('Alternative configuration file to use'))
opts, args = parser.parse_args()
@@ -84,7 +83,7 @@
else:
mlists.append(mlist)
if opts.full:
- name = mlist.internal_name()
+ name = mlist.fqdn_listname
else:
name = mlist.real_name
longest = max(len(name), longest)
@@ -99,17 +98,12 @@
format = '%%%ds - %%.%ds' % (longest, 77 - longest)
for mlist in mlists:
+ if opts.full:
+ name = mlist.fqdn_listname
+ else:
+ name = mlist.real_name
if opts.bare:
- print mlist.internal_name()
+ print name
else:
- if opts.full:
- name = mlist.internal_name()
- else:
- name = mlist.real_name
description = mlist.description or _('[no description available]')
print ' ', format % (name, description)
-
-
-
-if __name__ == '__main__':
- main()
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org