[Bug 1035057] Re: Unicode error prevents delivery of post
Stephen Turnbull
stephen at xemacs.org
Mon Aug 13 15:57:54 CEST 2012
The following patch works around, but I don't think it's right. I
suspect that something imported "datetime" where it should have imported
mailman.utils.datetime or something like that.
--- src/mailman/model/pending.py 2012-04-26 02:08:22 +0000
+++ src/mailman/model/pending.py 2012-08-13 07:38:39 +0000
@@ -26,6 +26,7 @@
]
+import datetime
import time
import random
import hashlib
@@ -128,6 +129,9 @@
# We expect this to be a list of strings.
value = ('mailman.model.pending.unpack_list\1' +
'\2'.join(value))
+ # #### Evile hack!!
+ elif type(value) is datetime.datetime:
+ value = unicode(value)
keyval = PendedKeyValue(key=key, value=value)
pending.key_values.add(keyval)
store.add(pending)
--
You received this bug notification because you are a member of Mailman
Coders, which is subscribed to GNU Mailman.
https://bugs.launchpad.net/bugs/1035057
Title:
Unicode error prevents delivery of post
To manage notifications about this bug go to:
https://bugs.launchpad.net/mailman/+bug/1035057/+subscriptions
More information about the Mailman-coders
mailing list