MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / Do

Method Do

gui/fitCommands/gui/fitRename.py:18–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16 self.name = name
17
18 def Do(self):
19 cmd = CalcFitRenameCommand(fitID=self.fitID, name=self.name)
20 success = self.internalHistory.submit(cmd)
21 eos.db.commit()
22 wx.PostEvent(gui.mainFrame.MainFrame.getInstance(), GE.FitRenamed(fitID=self.fitID))
23 return success
24
25 def Undo(self):
26 success = self.internalHistory.undoAll()

Callers

nothing calls this directly

Calls 3

submitMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected