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