def _deserializeAttributes(self, parentNode, model): attributesNode = parentNode.selectSingleNode(u"zns:attributes") #$NON-NLS-1$ # check for NPE (i.e. cases where attributes nodes do not exist). if attributesNode: xmlAttributes = ZXmlAttributes(attributesNode, self.namespace) for (name, value, namespace) in xmlAttributes.getAllAttributes(): model.setAttribute(name, value, namespace)
def _deserializeAttributes(self, parentNode, model): attributesNode = parentNode.selectSingleNode( u"zns:attributes") #$NON-NLS-1$ # check for NPE (i.e. cases where attributes nodes do not exist). if attributesNode: xmlAttributes = ZXmlAttributes(attributesNode, self.namespace) for (name, value, namespace) in xmlAttributes.getAllAttributes(): model.setAttribute(name, value, namespace)
def _deserializeAttributes(self, parentNode, model): attributesNode = parentNode.selectSingleNode(u"zns:attributes") #$NON-NLS-1$ xmlAttributes = ZXmlAttributes(attributesNode, self.namespace) for (name, value, namespace) in xmlAttributes.getAllAttributes(): model.setAttribute(name, value, namespace) # end _deserializeAttributes() # end ZResourceStoreEntryDeserializer