Get the parent of a handle object.
(self, typename)
| 1240 | return max(lengths) |
| 1241 | |
| 1242 | def getHandleParent(self, typename): |
| 1243 | """Get the parent of a handle object.""" |
| 1244 | if self.registry is None: |
| 1245 | raise MissingRegistryError() |
| 1246 | |
| 1247 | info = self.registry.typedict.get(typename) |
| 1248 | if info is None: |
| 1249 | return None |
| 1250 | |
| 1251 | elem = info.elem |
| 1252 | if elem is not None: |
| 1253 | return elem.get('parent') |
| 1254 | |
| 1255 | return None |
| 1256 | |
| 1257 | def iterateHandleAncestors(self, typename): |
| 1258 | """Iterate through the ancestors of a handle type.""" |
no test coverage detected