aboutsummaryrefslogtreecommitdiffstats
path: root/bin/reset_pw.py
diff options
context:
space:
mode:
authorYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2016-02-22 20:06:27 +0900
committerYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2016-02-22 20:06:27 +0900
commite7519290ad288df840bc86d8dcaea524407df964 (patch)
tree6fe1349a50bfb9045e75b638c8ce0374fafa6d0d /bin/reset_pw.py
parent6aaafb6c05840389f1dd9139da9694f3b43c57df (diff)
downloadmailman2-e7519290ad288df840bc86d8dcaea524407df964.tar.gz
mailman2-e7519290ad288df840bc86d8dcaea524407df964.tar.xz
mailman2-e7519290ad288df840bc86d8dcaea524407df964.zip
* add option to pick up C_() texts to make potfile
* revise command line utils _()/C_() usage (not tested at all)
Diffstat (limited to 'bin/reset_pw.py')
-rw-r--r--bin/reset_pw.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/reset_pw.py b/bin/reset_pw.py
index e829aefe..b71d5323 100644
--- a/bin/reset_pw.py
+++ b/bin/reset_pw.py
@@ -38,7 +38,7 @@ import getopt
import paths
from Mailman import Utils
-from Mailman.i18n import _
+from Mailman.i18n import C_
try:
@@ -54,7 +54,7 @@ def usage(code, msg=''):
fd = sys.stderr
else:
fd = sys.stdout
- print >> fd, _(__doc__.replace('%', '%%'))
+ print >> fd, C_(__doc__.replace('%', '%%'))
if msg:
print >> fd, msg
sys.exit(code)
@@ -74,13 +74,13 @@ def reset_pw(mlist, *args):
listname = mlist.internal_name()
if verbose:
- print _('Changing passwords for list: %(listname)s')
+ print C_('Changing passwords for list: %(listname)s')
for member in mlist.getMembers():
randompw = Utils.MakeRandomPassword()
mlist.setMemberPassword(member, randompw)
if verbose:
- print _('New password for member %(member)40s: %(randompw)s')
+ print C_('New password for member %(member)40s: %(randompw)s')
mlist.Save()