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 /Mailman/bin/change_pw.py | |
| parent | a1c5617a9ec43659739282e9993092b1333430b0 (diff) | |
| download | mailman-df7759f0d7c428f7ca213d022c2c608c93d76f6e.tar.gz mailman-df7759f0d7c428f7ca213d022c2c608c93d76f6e.tar.zst mailman-df7759f0d7c428f7ca213d022c2c608c93d76f6e.zip | |
Repairs
Diffstat (limited to 'Mailman/bin/change_pw.py')
| -rw-r--r-- | Mailman/bin/change_pw.py | 8 |
1 files changed, 4 insertions, 4 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: |
