Commit 3464c26f authored by Nicolas Delaby's avatar Nicolas Delaby

bug fix, hide log, typo

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16415 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 990f0021
...@@ -50,7 +50,7 @@ class VCardConduit(ERP5Conduit, SyncCode): ...@@ -50,7 +50,7 @@ class VCardConduit(ERP5Conduit, SyncCode):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareProtected(Permissions.AccessContentsInformation,'__init__') security.declareProtected(Permissions.AccessContentsInformation, '__init__')
def __init__(self): def __init__(self):
self.args = {} self.args = {}
...@@ -69,10 +69,10 @@ class VCardConduit(ERP5Conduit, SyncCode): ...@@ -69,10 +69,10 @@ class VCardConduit(ERP5Conduit, SyncCode):
portal_type = 'Person' #the VCard can just use Person portal_type = 'Person' #the VCard can just use Person
if sub_object is None: if sub_object is None:
new_object = ERP5Conduit.constructContent(self, object, object_id, new_object, reset_local_roles, reset_workflow = ERP5Conduit.constructContent(self, object, object_id,
portal_type) portal_type)
else: #if the object exist, it juste must be update else: #if the object exist, it juste must be update
new_object=sub_object new_object = sub_object
#LOG('addNode', 0, 'new_object:%s, sub_object:%s' % (new_object, sub_object)) #LOG('addNode', 0, 'new_object:%s, sub_object:%s' % (new_object, sub_object))
self.updateNode(xml=xml, self.updateNode(xml=xml,
object=new_object, object=new_object,
...@@ -88,7 +88,7 @@ class VCardConduit(ERP5Conduit, SyncCode): ...@@ -88,7 +88,7 @@ class VCardConduit(ERP5Conduit, SyncCode):
""" """
A node is deleted A node is deleted
""" """
LOG('deleteNode :', 0, 'object:%s, object_id:%s' % (str(object), str(object_id))) #LOG('deleteNode :', 0, 'object:%s, object_id:%s' % (str(object), str(object_id)))
conflict_list = [] conflict_list = []
try: try:
object._delObject(object_id) object._delObject(object_id)
...@@ -102,7 +102,7 @@ class VCardConduit(ERP5Conduit, SyncCode): ...@@ -102,7 +102,7 @@ class VCardConduit(ERP5Conduit, SyncCode):
""" """
A node is updated A node is updated
""" """
LOG('updateNode :',0, 'xml:%s, object:%s, previous_xml:%s, force:%s,simulate:%s, kw:%s' % (xml, object, previous_xml, force, simulate, kw)) #LOG('updateNode :',0, 'xml:%s, object:%s, previous_xml:%s, force:%s,simulate:%s, kw:%s' % (xml, object, previous_xml, force, simulate, kw))
vcard_dict = self.vcard2Dict(xml) vcard_dict = self.vcard2Dict(xml)
object.edit(**vcard_dict) object.edit(**vcard_dict)
return [] return []
......
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