Commit e5670bb3 authored by Nicolas Delaby's avatar Nicolas Delaby

use edit WorkflowMethod instead of _edit

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15576 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 97ce981a
...@@ -386,7 +386,6 @@ class ERP5Conduit(XMLSyncUtilsMixin): ...@@ -386,7 +386,6 @@ class ERP5Conduit(XMLSyncUtilsMixin):
#subscriber_value=data)] # not needed any more #subscriber_value=data)] # not needed any more
# We will now apply the argument with the method edit # We will now apply the argument with the method edit
if args != {} and (isConflict==0 or force) and (not simulate): if args != {} and (isConflict==0 or force) and (not simulate):
#object._edit(**args)
self.editDocument(object=object,**args) self.editDocument(object=object,**args)
# It is sometimes required to do something after an edit # It is sometimes required to do something after an edit
if hasattr(object,'manage_afterEdit'): if hasattr(object,'manage_afterEdit'):
...@@ -788,7 +787,6 @@ class ERP5Conduit(XMLSyncUtilsMixin): ...@@ -788,7 +787,6 @@ class ERP5Conduit(XMLSyncUtilsMixin):
args = self.getFormatedArgs(args=args) args = self.getFormatedArgs(args=args)
# edit the object with a dictionnary of arguments, # edit the object with a dictionnary of arguments,
# like {"telephone_number":"02-5648"} # like {"telephone_number":"02-5648"}
#object._edit(**args)
self.editDocument(object=object,**args) self.editDocument(object=object,**args)
if hasattr(object,'manage_afterEdit'): if hasattr(object,'manage_afterEdit'):
object.manage_afterEdit() object.manage_afterEdit()
...@@ -1142,7 +1140,7 @@ class ERP5Conduit(XMLSyncUtilsMixin): ...@@ -1142,7 +1140,7 @@ class ERP5Conduit(XMLSyncUtilsMixin):
This is the default editDocument method. This method This is the default editDocument method. This method
can easily be overwritten. can easily be overwritten.
""" """
object._edit(**kw) object.edit(**kw)
security.declareProtected(Permissions.ModifyPortalContent, 'getProperty') security.declareProtected(Permissions.ModifyPortalContent, 'getProperty')
def getProperty(self, object, kw): def getProperty(self, object, kw):
......
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