Commit 3d3ec3cb authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Folder: call activate on the object instead of...

Folder: call activate on the object instead of portal_activities.activateObject in _recurseCallMethod().

so that activate_kw set on the object is respected.
parent 63bd5a39
......@@ -449,7 +449,6 @@ class FolderMixIn(ExtensionClass.Base):
activate_kw.update(kw.get('activate_kw', ()))
activate_kw.setdefault('active_process', None)
activate_kw.setdefault('activity', 'SQLQueue')
activate = self.getPortalObject().portal_activities.activateObject
validate = restricted and getSecurityManager().validate
cost = activate_kw.setdefault('group_method_cost', .034) # 30 objects
if cost != 1:
......@@ -513,7 +512,7 @@ class FolderMixIn(ExtensionClass.Base):
del next_id[0]
if min_depth <= depth:
check_limit()
getattr(activate(container, **getActivateKw(container, recurse_activate_kw)),
getattr(container.activate(**getActivateKw(container, recurse_activate_kw)),
method_id)(*method_args, **method_kw)
del recurse_stack[depth:]
try:
......
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