From 3f5ae6b680e0125f5ae433aaa344fe530fada80b Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Fri, 28 Apr 2006 05:16:18 +0000 Subject: Convert Mailman.bin.rmlist module to optparse, and do general cleanup. Modify Mailman.i18n._() to understand string.Template style $-strings. The function now looks in the frame's locals and globals for a variable __i18n_templates__ which if True (defaults to False if missing) says that the string being translated uses $-strings instead of %-strings. newlist and rmlist both set __i18n_templates__ = True in their module globals. Rewrite ReopenableFileHandler to better ensure that nothing we log (even random 8-bit garbage) can cause an error in the logging subsystem. First, we open the underlying log file using a utf-8 codec, but if we get a UnicodeError when writing a log message to the stream, we encode the string with the 'string-escape' codec, which should pretty much makes any string data loggable. --- Mailman/Defaults.py.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Mailman/Defaults.py.in') diff --git a/Mailman/Defaults.py.in b/Mailman/Defaults.py.in index 23aa50dec..9ed247b67 100644 --- a/Mailman/Defaults.py.in +++ b/Mailman/Defaults.py.in @@ -1302,6 +1302,8 @@ PIDFILE = os.path.join(DATA_DIR, 'master-qrunner.pid') SITE_PW_FILE = os.path.join(DATA_DIR, 'adm.pw') LISTCREATOR_PW_FILE = os.path.join(DATA_DIR, 'creator.pw') + + # Import a bunch of version numbers from Version import * -- cgit v1.2.3-70-g09d2