Commit c1f24bd9 authored by Jérome Perrin's avatar Jérome Perrin

ERP5Type: fix transaction.note "expected text" warning with transaction 2

parent ed04d7d3
...@@ -356,7 +356,7 @@ class Message(BaseMessage): ...@@ -356,7 +356,7 @@ class Message(BaseMessage):
# that method ! # that method !
method = getattr(obj, self.method_id) method = getattr(obj, self.method_id)
transaction.get().note( transaction.get().note(
'CMFActivity ' + '/'.join(self.object_path) + '/' + self.method_id u'CMFActivity {}/{}'.format('/'.join(self.object_path), self.method_id)
) )
# Store site info # Store site info
setSite(activity_tool.getParentValue()) setSite(activity_tool.getParentValue())
......
...@@ -507,7 +507,7 @@ def synchronizeDynamicModules(context, force=False): ...@@ -507,7 +507,7 @@ def synchronizeDynamicModules(context, force=False):
portal.portal_skins.changeSkin(None) portal.portal_skins.changeSkin(None)
TransactionalResource(tpc_finish=lambda txn: TransactionalResource(tpc_finish=lambda txn:
_bootstrapped.add(portal.id)) _bootstrapped.add(portal.id))
transaction.get().note('Site migrated') transaction.get().note(u'Site migrated')
LOG('ERP5Site', INFO, 'Transition successful, please update your' LOG('ERP5Site', INFO, 'Transition successful, please update your'
' business templates') ' business templates')
else: else:
......
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