aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2018-06-18 04:35:51 -0700
committerMark Sapiro <mark@msapiro.net>2018-06-18 04:35:51 -0700
commitcecee6f6238d162a161bc1f6da13783fde2f0895 (patch)
treeae790c11556b99dfaf27a07b27ab0b382020d016 /Mailman
parentd3b8055fdda07338ac0b2de59613da2b34433412 (diff)
downloadmailman2-cecee6f6238d162a161bc1f6da13783fde2f0895.tar.gz
mailman2-cecee6f6238d162a161bc1f6da13783fde2f0895.tar.xz
mailman2-cecee6f6238d162a161bc1f6da13783fde2f0895.zip
Added global _ where needed.
Diffstat (limited to 'Mailman')
-rw-r--r--Mailman/Cgi/admin.py1
-rw-r--r--Mailman/Cgi/options.py1
-rw-r--r--Mailman/ListAdmin.py1
-rw-r--r--Mailman/MailList.py1
4 files changed, 4 insertions, 0 deletions
diff --git a/Mailman/Cgi/admin.py b/Mailman/Cgi/admin.py
index 53975964..f77b358e 100644
--- a/Mailman/Cgi/admin.py
+++ b/Mailman/Cgi/admin.py
@@ -1401,6 +1401,7 @@ def submit_button(name='submit'):
def change_options(mlist, category, subcat, cgidata, doc):
+ global _
def safeint(formvar, defaultval=None):
try:
return int(cgidata.getfirst(formvar))
diff --git a/Mailman/Cgi/options.py b/Mailman/Cgi/options.py
index c2a84ecb..34a7718e 100644
--- a/Mailman/Cgi/options.py
+++ b/Mailman/Cgi/options.py
@@ -59,6 +59,7 @@ AUTH_CONTEXTS = (mm_cfg.AuthListAdmin, mm_cfg.AuthSiteAdmin,
def main():
+ global _
doc = Document()
doc.set_language(mm_cfg.DEFAULT_SERVER_LANGUAGE)
diff --git a/Mailman/ListAdmin.py b/Mailman/ListAdmin.py
index cf418d05..fe58109c 100644
--- a/Mailman/ListAdmin.py
+++ b/Mailman/ListAdmin.py
@@ -421,6 +421,7 @@ class ListAdmin:
i18n.set_language(lang)
def __handlesubscription(self, record, value, comment):
+ global _
stime, addr, fullname, password, digest, lang = record
if value == mm_cfg.DEFER:
return DEFER
diff --git a/Mailman/MailList.py b/Mailman/MailList.py
index d2a15e29..83717f40 100644
--- a/Mailman/MailList.py
+++ b/Mailman/MailList.py
@@ -1301,6 +1301,7 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin,
# Confirmation processing
#
def ProcessConfirmation(self, cookie, context=None):
+ global _
rec = self.pend_confirm(cookie)
if rec is None:
raise Errors.MMBadConfirmation, 'No cookie record for %s' % cookie