Commit c1b682a6 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Wrap the object before calling setDefaultActivateParameters so that a portal object is reachable.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13820 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4a59e923
......@@ -47,7 +47,7 @@ def addActiveProcess(self, id, title='', REQUEST=None, activate_kw=None, **kw):
"""
o = ActiveProcess(id)
if activate_kw is not None:
o.setDefaultActivateParameters(**activate_kw)
o.__of__(self).setDefaultActivateParameters(**activate_kw)
o.uid = self.portal_catalog.newUid()
self._setObject(id, o)
o = self._getOb(id)
......
......@@ -333,7 +333,7 @@ class DocumentConstructor(Method):
activate_kw=None, is_indexable=None, **kw):
o = self.klass(id)
if activate_kw is not None:
o.setDefaultActivateParameters(**activate_kw)
o.__of__(folder).setDefaultActivateParameters(**activate_kw)
if is_indexable is not None:
o.isIndexable = is_indexable
folder._setObject(id, o)
......
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