Fix encoding error in migration procedure, otherwise migration procedure breaks on joining output list in case we have there any non-ascii characters. [piv]
svn path=/plone.app.discussion/trunk/; revision=36844
This commit is contained in:
@@ -48,6 +48,9 @@ class View(BrowserView):
|
||||
dtool = context.portal_discussion
|
||||
|
||||
def log(msg):
|
||||
# encode string before sending it to external world
|
||||
if isinstance(msg, unicode):
|
||||
msg = msg.encode('utf-8')
|
||||
context.plone_log(msg)
|
||||
out.append(msg)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user