Recursively get the entire inheritance tree of this group :rtype: list[Group]
(self)
| 607 | self.parent.subgroups = [g for g in self.parent.subgroups if g != self] |
| 608 | |
| 609 | def all_parents(self): |
| 610 | """ |
| 611 | Recursively get the entire inheritance tree of this group |
| 612 | :rtype: list[Group] |
| 613 | """ |
| 614 | if self.parent: |
| 615 | return [self.parent] + self.parent.all_parents() |
| 616 | return [] |
| 617 | |
| 618 | def to_dot(self): |
| 619 | """ |