Get a flattened representation of the branch. @return: A flat list of nodes. @rtype: [L{Element},..]
(self)
| 839 | return byname and byns |
| 840 | |
| 841 | def branch(self): |
| 842 | """ |
| 843 | Get a flattened representation of the branch. |
| 844 | @return: A flat list of nodes. |
| 845 | @rtype: [L{Element},..] |
| 846 | """ |
| 847 | branch = [self] |
| 848 | for c in self.children: |
| 849 | branch += c.branch() |
| 850 | return branch |
| 851 | |
| 852 | def ancestors(self): |
| 853 | """ |