Commit 6c3fa4f1 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

make ActivityTool.activateObject() public.

so that we can register activity by path from restricted environment.
also set default parameters just same as ActiveObject.activate().
parent c6d6ef75
......@@ -1060,8 +1060,7 @@ class ActivityTool (Folder, UniqueObject):
thread_activity_buffer[my_thread_key] = buffer
return buffer
security.declarePrivate('activateObject')
def activateObject(self, object, activity, active_process, **kw):
def activateObject(self, object, activity=DEFAULT_ACTIVITY, active_process=None, **kw):
if not is_initialized:
self.initialize()
self.getActivityBuffer()
......
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