Commit f02e7d62 authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Kazuhiko Shiozaki

ActivityTool: decode path and method_id when we try to get transaction's note

Otherwise, we may get error if we have special characters
parent 51217534
......@@ -27,7 +27,7 @@ from __future__ import absolute_import
#
##############################################################################
from six import string_types as basestring
from Products.ERP5Type.Utils import ensure_list
from Products.ERP5Type.Utils import ensure_list, str2unicode
import copy
import socket
......@@ -359,7 +359,10 @@ class Message(BaseMessage):
# that method !
method = getattr(obj, self.method_id)
transaction.get().note(
u'CMFActivity {}/{}'.format('/'.join(self.object_path), self.method_id)
u'CMFActivity {}/{}'.format(
'/'.join([str2unicode(x) for x in self.object_path]),
str2unicode(self.method_id),
)
)
# Store site info
setSite(activity_tool.getParentValue())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment