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

Method merge

suds/xsd/sxbase.py:382–400  ·  view source on GitHub ↗

Merge another object as needed.

(self, other)

Source from the content-addressed store, hash-verified

380 setattr(self, a, qref)
381
382 def merge(self, other):
383 """
384 Merge another object as needed.
385 """
386 other.qualify()
387 for n in ('name',
388 'qname',
389 'min',
390 'max',
391 'default',
392 'type',
393 'nillable',
394 'form_qualified',):
395 if getattr(self, n) is not None:
396 continue
397 v = getattr(other, n)
398 if v is None:
399 continue
400 setattr(self, n, v)
401
402 def content(self, collection=None, filter=Filter(), history=None):
403 """

Callers

nothing calls this directly

Calls 1

qualifyMethod · 0.45

Tested by

no test coverage detected