On 11/15/2013 06:11 AM, Roel Wagenaar wrote: > > I have adde your lines right after "import re", and almost instantly get the > "We hit a bug" message in the web interface. > > I have attached an extract from mailmans error log, hope the list will allow > it. > The error message is: > > admin(3051): from Mailman.Handlers.Decorate import decorate > admin(3051): File "/var/lib/mailman/Mailman/Handlers/Decorate.py", line > 23, in <module> > admin(3051): email.charset.CHARSETS['utf-8'] = (SHORTEST, None, > 'utf-8') > admin(3051): NameError: name 'SHORTEST' is not defined
My bad :( either of the following should work: import email.charset email.charset.CHARSETS['utf-8'] = (email.charset.SHORTEST, None, 'utf-8') or from email.charset import CHARSETS, SHORTEST CHARSETS['utf-8'] = (SHORTEST, None, 'utf-8') -- Mark Sapiro <[email protected]> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list [email protected] https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org
