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

Method defaultNamespace

suds/sax/element.py:295–309  ·  view source on GitHub ↗

Get the default (unqualified namespace). This is the expns of the first node (looking up the tree) that has it set. @return: The namespace of a node when not qualified. @rtype: (I{prefix}, I{name})

(self)

Source from the content-addressed store, hash-verified

293 return self.resolvePrefix(self.prefix)
294
295 def defaultNamespace(self):
296 """
297 Get the default (unqualified namespace).
298 This is the expns of the first node (looking up the tree)
299 that has it set.
300 @return: The namespace of a node when not qualified.
301 @rtype: (I{prefix}, I{name})
302 """
303 p = self
304 while p is not None:
305 if p.expns is not None:
306 return (None, p.expns)
307 else:
308 p = p.parent
309 return Namespace.default
310
311 def append(self, objects):
312 """

Callers 3

namespaceMethod · 0.95
default_namespaceMethod · 0.80
qualifyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected