The ancestry contains a @param ancestry: A list of ancestors. @type ancestry: list @return: True if contains @rtype: boolean
(self, ancestry)
| 147 | return result |
| 148 | |
| 149 | def bychoice(self, ancestry): |
| 150 | """ |
| 151 | The ancestry contains a <choice/> |
| 152 | @param ancestry: A list of ancestors. |
| 153 | @type ancestry: list |
| 154 | @return: True if contains <choice/> |
| 155 | @rtype: boolean |
| 156 | """ |
| 157 | for x in ancestry: |
| 158 | if x.choice(): |
| 159 | return True |
| 160 | return False |