diff options
| author | bwarsaw | 2006-05-01 19:04:28 +0000 |
|---|---|---|
| committer | bwarsaw | 2006-05-01 19:04:28 +0000 |
| commit | df7759f0d7c428f7ca213d022c2c608c93d76f6e (patch) | |
| tree | 4a92d1e086461d01f7dfa4a0ca2470efd2dd103c | |
| parent | a1c5617a9ec43659739282e9993092b1333430b0 (diff) | |
| download | mailman-df7759f0d7c428f7ca213d022c2c608c93d76f6e.tar.gz mailman-df7759f0d7c428f7ca213d022c2c608c93d76f6e.tar.zst mailman-df7759f0d7c428f7ca213d022c2c608c93d76f6e.zip | |
| -rw-r--r-- | Mailman/bin/change_pw.py | 8 | ||||
| -rw-r--r-- | Mailman/bin/show_qfiles.py | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Mailman/bin/change_pw.py b/Mailman/bin/change_pw.py index 00c555d9b..afa932160 100644 --- a/Mailman/bin/change_pw.py +++ b/Mailman/bin/change_pw.py @@ -54,7 +54,7 @@ Thus, this script generates new passwords for a list, and optionally sends it to all the owners of the list.""")) parser.add_option('-a', '--all', default=False, action='store_true', - help_('Change the password for all lists')) + help=_('Change the password for all lists')) parser.add_option('-d', '--domain', default=[], type='string', action='append', dest='domains', help=_("""\ @@ -127,7 +127,7 @@ def main(): # Set the password on the lists if opts.password: - shapassword = sha.new(password).hexdigest() + shapassword = sha.new(opts.password).hexdigest() for listname in listnames: mlist = openlist(listname) @@ -139,7 +139,7 @@ def main(): shapassword = sha.new(randompw).hexdigest() notifypassword = randompw else: - notifypassword = password + notifypassword = opts.password mlist.password = shapassword mlist.Save() @@ -148,7 +148,7 @@ def main(): # Notification print _('New $listname password: $notifypassword') - if not quiet: + if not opts.quiet: otrans = i18n.get_translation() i18n.set_language(mlist.preferred_language) try: diff --git a/Mailman/bin/show_qfiles.py b/Mailman/bin/show_qfiles.py index f2ec819c1..f49190b1d 100644 --- a/Mailman/bin/show_qfiles.py +++ b/Mailman/bin/show_qfiles.py @@ -19,6 +19,7 @@ import sys import optparse from cPickle import load +from Mailman import mm_cfg from Mailman.i18n import _ __i18_templates__ = True @@ -36,7 +37,6 @@ Show the contents of one or more Mailman queue files.""")) help=_("Don't print 'helpful' message delimiters.")) opts, args = parser.parse_args() return parser, opts, args - @@ -44,7 +44,7 @@ def main(): parser, opts, args = parseargs() for filename in args: - if not quiet: + if not opts.quiet: print '====================>', filename fp = open(filename) if filename.endswith(".pck"): |
