Commit 5eb22234 authored by Sebastien Robin's avatar Sebastien Robin

use newContent instead of portal_types.constructContent


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3055 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4e317f99
...@@ -48,6 +48,7 @@ from cStringIO import StringIO ...@@ -48,6 +48,7 @@ from cStringIO import StringIO
from xml.sax.saxutils import escape, unescape from xml.sax.saxutils import escape, unescape
import re, copy import re, copy
from zLOG import LOG from zLOG import LOG
class ERP5Conduit(XMLSyncUtilsMixin): class ERP5Conduit(XMLSyncUtilsMixin):
...@@ -948,9 +949,7 @@ class ERP5Conduit(XMLSyncUtilsMixin): ...@@ -948,9 +949,7 @@ class ERP5Conduit(XMLSyncUtilsMixin):
portal_types = getToolByName(object,'portal_types') portal_types = getToolByName(object,'portal_types')
LOG('ERP5Conduit.addNode',0,'portal_type: |%s|' % str(portal_type)) LOG('ERP5Conduit.addNode',0,'portal_type: |%s|' % str(portal_type))
if docid==None: # ERP5 content if docid==None: # ERP5 content
portal_types.constructContent(type_name = portal_type, object.newContent(portal_type=portal_type,id=object_id)
container = object,
id = object_id)
else: # CPS content else: # CPS content
# This is specific to CPS, we will call the proxy tool # This is specific to CPS, we will call the proxy tool
px_tool= getToolByName(object,'portal_proxies') px_tool= getToolByName(object,'portal_proxies')
......
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