Commit 39f70510 authored by Sebastien Robin's avatar Sebastien Robin

corrected problem with sections


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@598 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 27f346a6
...@@ -161,7 +161,7 @@ class ERP5Conduit(XMLSyncUtilsMixin): ...@@ -161,7 +161,7 @@ class ERP5Conduit(XMLSyncUtilsMixin):
px_tool= getToolByName(object,'portal_proxies') px_tool= getToolByName(object,'portal_proxies')
trees_tool= getToolByName(object,'portal_trees') trees_tool= getToolByName(object,'portal_trees')
proxy_type = 'document' proxy_type = 'document'
if portal_type == 'Workspace': if portal_type in ('Workspace','Section'):
proxy_type = 'folder' proxy_type = 'folder'
proxy = px_tool.createEmptyProxy(proxy_type, proxy = px_tool.createEmptyProxy(proxy_type,
object,portal_type,object_id,docid=docid) object,portal_type,object_id,docid=docid)
......
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