summaryrefslogtreecommitdiff
path: root/src/mailman/Archiver/HyperArch.py
diff options
context:
space:
mode:
authorBarry Warsaw2011-03-16 15:17:17 -0400
committerBarry Warsaw2011-03-16 15:17:17 -0400
commit4943fba2eb4d812c20dbae1a61ce5e3b56d9a4d7 (patch)
treeef32d56c3721081ea31090a3f249c9b4a01af6a0 /src/mailman/Archiver/HyperArch.py
parent2c562fd0191b0af04511dad2b0d0ae57b31198e7 (diff)
parent99c83c30436c5d6e4704374a37a4ad38e0a5a0aa (diff)
downloadmailman-4943fba2eb4d812c20dbae1a61ce5e3b56d9a4d7.tar.gz
mailman-4943fba2eb4d812c20dbae1a61ce5e3b56d9a4d7.tar.zst
mailman-4943fba2eb4d812c20dbae1a61ce5e3b56d9a4d7.zip
Another step in the removal of the mailman.Utils module. This removes
Utils.maketext() and Utils.findtext() in favor of better implementations in mailman.utilities.i18n. We're nearly there!
Diffstat (limited to 'src/mailman/Archiver/HyperArch.py')
-rw-r--r--src/mailman/Archiver/HyperArch.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mailman/Archiver/HyperArch.py b/src/mailman/Archiver/HyperArch.py
index 218c46875..92b9de2f0 100644
--- a/src/mailman/Archiver/HyperArch.py
+++ b/src/mailman/Archiver/HyperArch.py
@@ -50,6 +50,7 @@ from mailman.Archiver import pipermail
from mailman.config import config
from mailman.core.i18n import _, ctime
from mailman.interfaces.listmanager import IListManager
+from mailman.utilities.i18n import find
from mailman.utilities.string import uncanonstr, websafe
@@ -183,8 +184,8 @@ def quick_maketext(templatefile, dict=None, lang=None, mlist=None):
template = _templatecache.get(filepath)
if filepath is None or template is None:
# Use the basic maketext, with defaults to get the raw template
- template, filepath = Utils.findtext(templatefile, lang=lang.code,
- raw=True, mlist=mlist)
+ template, filepath = find(templatefile, mailing_list=mlist,
+ language=lang.code)
_templatefilepathcache[cachekey] = filepath
_templatecache[filepath] = template
# Copied from Utils.maketext()