When using PostgreSQL as a database, it's impossible to set the moderator_password field of a mailing list, which is of type RawStr.
To be precise, it's possible to set it, but getting it back from the database after a commit will cause a TypeError with the message:
"Expected str, found <type 'unicode'>" as if PostgreSQL always returned unicode on TEXT fields and Storm did not convert them to bytestrings. I get no errors on an SQLite database.
I don't know if the problem comes from Mailman or Storm. I have written
a python script to reproduce it, see the attached file. There are
comments, it should be easily readable.
** Affects: mailman
** Tags: mailman3
** Attachment added: "test-mm-storm-unicode.py"
You received this bug notification because you are a member of Mailman
Coders, which is subscribed to GNU Mailman.
Unicode errors with PostgreSQL and RawStr fields
To manage notifications about this bug go to: