Commit 9c247304 authored by Vincent Pelletier's avatar Vincent Pelletier

Avoid calling what is just not needed.

parent 4be354e2
......@@ -1063,7 +1063,6 @@ class ActivityTool (Folder, UniqueObject):
def activateObject(self, object, activity=DEFAULT_ACTIVITY, active_process=None, **kw):
if not is_initialized:
self.initialize()
self.getActivityBuffer()
if isinstance(active_process, str):
active_process = self.unrestrictedTraverse(active_process)
return ActiveWrapper(self, object, activity, active_process, kw,
......
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