@param root: An XML root element. @type root: L{Element} @param definitions: A definitions object. @type definitions: L{Definitions}
(self, root, definitions)
| 423 | """ |
| 424 | |
| 425 | def __init__(self, root, definitions): |
| 426 | """ |
| 427 | @param root: An XML root element. |
| 428 | @type root: L{Element} |
| 429 | @param definitions: A definitions object. |
| 430 | @type definitions: L{Definitions} |
| 431 | """ |
| 432 | NamedObject.__init__(self, root, definitions) |
| 433 | self.parts = [] |
| 434 | for p in root.getChildren('part'): |
| 435 | part = Part(p, definitions) |
| 436 | self.parts.append(part) |
| 437 | |
| 438 | def __gt__(self, other): |
| 439 | return isinstance(other, (Import, Types)) |
nothing calls this directly
no test coverage detected