(self)
| 17 | self.commandFitIDs = commandFitIDs |
| 18 | |
| 19 | def Do(self): |
| 20 | results = [] |
| 21 | for commandFitID in self.commandFitIDs: |
| 22 | cmd = CalcRemoveCommandFitCommand(fitID=self.fitID, commandFitID=commandFitID) |
| 23 | results.append(self.internalHistory.submit(cmd)) |
| 24 | success = any(results) |
| 25 | eos.db.flush() |
| 26 | sFit = Fit.getInstance() |
| 27 | sFit.recalc(self.fitID) |
| 28 | sFit.fill(self.fitID) |
| 29 | eos.db.commit() |
| 30 | wx.PostEvent(gui.mainFrame.MainFrame.getInstance(), GE.FitChanged(fitIDs=(self.fitID,))) |
| 31 | return success |
| 32 | |
| 33 | def Undo(self): |
| 34 | success = self.internalHistory.undoAll() |
nothing calls this directly
no test coverage detected