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

Method domains

suds/properties.py:386–405  ·  view source on GitHub ↗

Get the set of I{all} domain names. @param history: A history of nodes checked to prevent circular hunting. @type history: [L{Properties},..] @return: A set of domain names. @rtype: list

(self, history=None)

Source from the content-addressed store, hash-verified

384 return keys
385
386 def domains(self, history=None):
387 """
388 Get the set of I{all} domain names.
389 @param history: A history of nodes checked to prevent
390 circular hunting.
391 @type history: [L{Properties},..]
392 @return: A set of domain names.
393 @rtype: list
394 """
395 if history is None:
396 history = []
397 history.append(self)
398 domains = set()
399 domains.add(self.domain)
400 for x in self.links:
401 if x in history:
402 continue
403 domains.update(x.domains(history))
404 history.remove(self)
405 return domains
406
407 def prime(self):
408 """

Callers 1

validateMethod · 0.80

Calls 5

removeMethod · 0.80
setFunction · 0.50
appendMethod · 0.45
addMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected