t.clone() returns a new pipeline template with identical initial state as the current one.
(self)
| 99 | self.steps = [] |
| 100 | |
| 101 | def clone(self): |
| 102 | """t.clone() returns a new pipeline template with identical |
| 103 | initial state as the current one.""" |
| 104 | t = Template() |
| 105 | t.steps = self.steps[:] |
| 106 | t.debugging = self.debugging |
| 107 | return t |
| 108 | |
| 109 | def debug(self, flag): |
| 110 | """t.debug(flag) turns debugging on or off.""" |