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

Method document

suds/bindings/document.py:80–92  ·  view source on GitHub ↗

Get the document root. For I{document/literal}, this is the name of the wrapper element qualifed by the schema tns. @param wrapper: The method name. @type wrapper: L{xsd.sxbase.SchemaObject} @return: A root element. @rtype: L{Element}

(self, wrapper)

Source from the content-addressed store, hash-verified

78 return body.children
79
80 def document(self, wrapper):
81 """
82 Get the document root. For I{document/literal}, this is the
83 name of the wrapper element qualifed by the schema tns.
84 @param wrapper: The method name.
85 @type wrapper: L{xsd.sxbase.SchemaObject}
86 @return: A root element.
87 @rtype: L{Element}
88 """
89 tag = wrapper[1].name
90 ns = wrapper[1].namespace('ns0')
91 d = Element(tag, ns=ns)
92 return d
93
94 def mkparam(self, method, pdef, object):
95 #

Callers 2

bodycontentMethod · 0.95
jquery.wysiwyg.jsFile · 0.80

Calls 2

ElementClass · 0.90
namespaceMethod · 0.45

Tested by

no test coverage detected