Commit 009a39f9 authored by Sebastien Robin's avatar Sebastien Robin

corrected a very old bug, _modifyProxy was not called with the good object


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@472 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8c9a4c07
......@@ -159,6 +159,7 @@ class ERP5Conduit(XMLSyncUtilsMixin):
else: # CPS content
# This is specific to CPS, we will call the proxy tool
px_tool= getToolByName(object,'portal_proxies')
trees_tool= getToolByName(object,'portal_trees')
proxy_type = 'document'
if portal_type == 'Workspace':
proxy_type = 'folder'
......@@ -167,8 +168,9 @@ class ERP5Conduit(XMLSyncUtilsMixin):
proxy.isIndexable = 0 # So it will not be reindexed, this prevent errors
# Calculate rpath
utool = getToolByName(object, 'portal_url')
rpath = utool.getRelativeUrl(object)
rpath = utool.getRelativeUrl(proxy)
px_tool._modifyProxy(proxy,rpath)
trees_tool.notify_tree('sys_modify_object',proxy,rpath)
subobject = object._getOb(object_id)
self.newObject(object=subobject,xml=xml,simulate=simulate)
......
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