(self)
| 49 | return True |
| 50 | |
| 51 | def Undo(self): |
| 52 | pyfalog.debug('Undoing addition of command fit {} for fit {}'.format(self.commandFitID, self.fitID)) |
| 53 | # Can't find the command fit, it must have been deleted. Just skip, as deleted fit |
| 54 | # means that someone else just did exactly what we wanted to do |
| 55 | commandFit = Fit.getInstance().getFit(self.commandFitID) |
| 56 | if commandFit is None: |
| 57 | return True |
| 58 | from .remove import CalcRemoveCommandFitCommand |
| 59 | cmd = CalcRemoveCommandFitCommand(fitID=self.fitID, commandFitID=self.commandFitID) |
| 60 | return cmd.Do() |
no test coverage detected