get the ordering
(self, type)
| 107 | return any(x.choice() for x in ancestry) |
| 108 | |
| 109 | def ordering(self, type): |
| 110 | """ get the ordering """ |
| 111 | result = [] |
| 112 | for child, ancestry in type.resolve(): |
| 113 | name = child.name |
| 114 | if child.name is None: |
| 115 | continue |
| 116 | if child.isattr(): |
| 117 | name = '_%s' % child.name |
| 118 | result.append(name) |
| 119 | return result |