From a39a27fce459fb6fc4d0c1ee17ab571d51bf16bf Mon Sep 17 00:00:00 2001 From: tkikuchi Date: Fri, 2 Mar 2007 12:36:15 +0000 Subject: Fixes for i18n digest to work. Mailman/Queue/Switchboard.py: listname is returned in unicode. ( '\x80' + 'a' is OK, '\x80' + u'a' is NG) Mailman/Utils.py: Utils.oneline() is extended for returning unicode string. Mailman/Digester.py: next_post_number is not used anywhere. Mailman/database/listdata.py: Attributes added (esp. for non web u/i) Mailman/bin/senddigests.py: Initialization Mailman/Handlers/ToDigest.py: Internal string calculation is done in unicode. So, several fixes. StringIO is used because cStringIO doesn't have encoding attribute. --- Mailman/Digester.py | 1 - 1 file changed, 1 deletion(-) (limited to 'Mailman/Digester.py') diff --git a/Mailman/Digester.py b/Mailman/Digester.py index 2fb8c5e74..d2051c86f 100644 --- a/Mailman/Digester.py +++ b/Mailman/Digester.py @@ -37,7 +37,6 @@ class Digester: self.mime_is_default_digest = config.DEFAULT_MIME_IS_DEFAULT_DIGEST self.digest_size_threshhold = config.DEFAULT_DIGEST_SIZE_THRESHHOLD self.digest_send_periodic = config.DEFAULT_DIGEST_SEND_PERIODIC - self.next_post_number = 1 self.digest_header = config.DEFAULT_DIGEST_HEADER self.digest_footer = config.DEFAULT_DIGEST_FOOTER self.digest_volume_frequency = config.DEFAULT_DIGEST_VOLUME_FREQUENCY -- cgit v1.2.3-70-g09d2