Refit (normalize) the attribute's value. @param a: An attribute. @type a: L{Attribute}
(self, a)
| 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 | """ |
no test coverage detected