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

Method refitValue

suds/sax/element.py:1103–1116  ·  view source on GitHub ↗

Refit (normalize) the attribute's value. @param a: An attribute. @type a: L{Attribute}

(self, a)

Source from the content-addressed store, hash-verified

1101 self.refitValue(a)
1102
1103 def refitValue(self, a):
1104 """
1105 Refit (normalize) the attribute's value.
1106 @param a: An attribute.
1107 @type a: L{Attribute}
1108 """
1109 p, name = splitPrefix(a.getValue())
1110 if p is None:
1111 return
1112 ns = a.resolvePrefix(p)
1113 if self.permit(ns):
1114 u = ns[1]
1115 p = self.prefixes[u]
1116 a.setValue(':'.join((p, name)))
1117
1118 def refitMappings(self):
1119 """

Callers 1

refitAddrMethod · 0.95

Calls 5

permitMethod · 0.95
splitPrefixFunction · 0.90
getValueMethod · 0.80
setValueMethod · 0.80
resolvePrefixMethod · 0.45

Tested by

no test coverage detected