(self)
| 17 | self.position2 = position2 |
| 18 | |
| 19 | def Do(self): |
| 20 | if self.position1 == self.position2: |
| 21 | return False |
| 22 | cmd = CalcSwapLocalModuleCommand(fitID=self.fitID, position1=self.position1, position2=self.position2) |
| 23 | success = self.internalHistory.submit(cmd) |
| 24 | eos.db.commit() |
| 25 | wx.PostEvent(gui.mainFrame.MainFrame.getInstance(), GE.FitChanged(fitIDs=(self.fitID,))) |
| 26 | return success |
| 27 | |
| 28 | def Undo(self): |
| 29 | success = self.internalHistory.undoAll() |
nothing calls this directly
no test coverage detected