Return as a list of task IDs.
(self)
| 124 | return (self.id, parent and parent.as_tuple()), None |
| 125 | |
| 126 | def as_list(self): |
| 127 | """Return as a list of task IDs.""" |
| 128 | results = [] |
| 129 | parent = self.parent |
| 130 | results.append(self.id) |
| 131 | if parent is not None: |
| 132 | results.extend(parent.as_list()) |
| 133 | return results |
| 134 | |
| 135 | def forget(self): |
| 136 | """Forget the result of this task and its parents.""" |