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

Method implany

suds/xsd/sxbasic.py:385–395  ·  view source on GitHub ↗

Set the type as any when implicit. An implicit is when an element has not body and no type defined. @return: self @rtype: L{Element}

(self)

Source from the content-addressed store, hash-verified

383 self.implany()
384
385 def implany(self):
386 """
387 Set the type as any when implicit.
388 An implicit <xs:any/> is when an element has not
389 body and no type defined.
390 @return: self
391 @rtype: L{Element}
392 """
393 if self.type is None and self.ref is None and self.root.isempty():
394 self.type = self.anytype()
395 return self
396
397 def childtags(self):
398 return ('attribute', 'simpleType', 'complexType', 'any',)

Callers 1

__init__Method · 0.95

Calls 2

anytypeMethod · 0.95
isemptyMethod · 0.80

Tested by

no test coverage detected