MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / isnil

Method isnil

suds/sax/element.py:695–706  ·  view source on GitHub ↗

Get whether the element is I{nil} as defined by having an attribute in the I{xsi:nil="true"} @return: True if I{nil}, else False @rtype: boolean

(self)

Source from the content-addressed store, hash-verified

693 return nocontent and noattrs
694
695 def isnil(self):
696 """
697 Get whether the element is I{nil} as defined by having
698 an attribute in the I{xsi:nil="true"}
699 @return: True if I{nil}, else False
700 @rtype: boolean
701 """
702 nilattr = self.getAttribute('nil', ns=Namespace.xsins)
703 if nilattr is None:
704 return False
705 else:
706 return nilattr.getValue().lower() == 'true'
707
708 def setnil(self, flag=True):
709 """

Callers 1

postprocessMethod · 0.80

Calls 2

getAttributeMethod · 0.95
getValueMethod · 0.80

Tested by

no test coverage detected