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
from xml.sax.saxutils import escape, unescape
import re, copy
from zLOG import LOG
class ERP5Conduit(XMLSyncUtilsMixin):
......@@ -948,9 +949,7 @@ class ERP5Conduit(XMLSyncUtilsMixin):
portal_types = getToolByName(object,'portal_types')
LOG('ERP5Conduit.addNode',0,'portal_type: |%s|' % str(portal_type))
if docid==None: # ERP5 content
portal_types.constructContent(type_name = portal_type,
container = object,
id = object_id)
object.newContent(portal_type=portal_type,id=object_id)
else: # CPS content
# This is specific to CPS, we will call the proxy tool
px_tool= getToolByName(object,'portal_proxies')
......@@ -1092,4 +1091,4 @@ class ERP5Conduit(XMLSyncUtilsMixin):
# conflict.setXupdate(string_io.getvalue())
# conflict.setRemoteValue(status)
# conflict_list += [conflict]
# return conflict_list
\ No newline at end of file
# return conflict_list
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