Commit 4000ca8b authored by Nicolas Delaby's avatar Nicolas Delaby

Wordwrap to 80 chars

remove commented code


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35823 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9844ade8
......@@ -640,14 +640,16 @@ class ERP5Conduit(XMLSyncUtilsMixin):
xml = xml[0]
return xml
security.declareProtected(Permissions.AccessContentsInformation,'getObjectType')
security.declareProtected(Permissions.AccessContentsInformation,
'getObjectType')
def getObjectType(self, xml):
"""
Retrieve the portal type from an xml
"""
return xml.get('portal_type')
security.declareProtected(Permissions.AccessContentsInformation,'getPropertyType')
security.declareProtected(Permissions.AccessContentsInformation,
'getPropertyType')
def getPropertyType(self, xml):
"""
Retrieve the portal type from an xml
......@@ -700,18 +702,15 @@ class ERP5Conduit(XMLSyncUtilsMixin):
object.manage_afterEdit()
self.afterNewObject(object)
## Then we may create subobject
#for subnode in xml:
#if subnode.tag in (self.xml_object_tag,): #,self.history_tag):
#self.addNode(object=object, xml=subnode)
security.declareProtected(Permissions.AccessContentsInformation,'afterNewObject')
security.declareProtected(Permissions.AccessContentsInformation,
'afterNewObject')
def afterNewObject(self, object):
"""Overloadable method
"""
pass
security.declareProtected(Permissions.AccessContentsInformation,'getStatusFromXml')
security.declareProtected(Permissions.AccessContentsInformation,
'getStatusFromXml')
def getStatusFromXml(self, xml):
"""
Return a worklow status from xml
......@@ -732,7 +731,8 @@ class ERP5Conduit(XMLSyncUtilsMixin):
"""
return xml.xpath('|'.join(['.//*[name() = "%s"]' % name for name in self.XUPDATE_ELEMENT]))
security.declareProtected(Permissions.AccessContentsInformation,'getElementFromXupdate')
security.declareProtected(Permissions.AccessContentsInformation,
'getElementFromXupdate')
def getElementFromXupdate(self, xml):
"""
return a fragment node with applied xupdate
......@@ -775,7 +775,8 @@ class ERP5Conduit(XMLSyncUtilsMixin):
return self.convertToXml(result)
return xml
security.declareProtected(Permissions.AccessContentsInformation,'getWorkflowActionFromXml')
security.declareProtected(Permissions.AccessContentsInformation,
'getWorkflowActionFromXml')
def getWorkflowActionFromXml(self, xml):
"""
Return the list of workflow actions
......
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