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

Method Do

gui/fitCommands/gui/booster/add.py:20–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18 self.itemID = itemID
19
20 def Do(self):
21 cmd = CalcAddBoosterCommand(fitID=self.fitID, boosterInfo=BoosterInfo(itemID=self.itemID))
22 success = self.internalHistory.submit(cmd)
23 Market.getInstance().storeRecentlyUsed(self.itemID)
24 eos.db.flush()
25 sFit = Fit.getInstance()
26 sFit.recalc(self.fitID)
27 sFit.fill(self.fitID)
28 eos.db.commit()
29 wx.PostEvent(gui.mainFrame.MainFrame.getInstance(), GE.FitChanged(fitIDs=(self.fitID,)))
30 return success
31
32 def Undo(self):
33 success = self.internalHistory.undoAll()

Callers

nothing calls this directly

Calls 8

BoosterInfoClass · 0.90
submitMethod · 0.80
storeRecentlyUsedMethod · 0.80
flushMethod · 0.80
recalcMethod · 0.80
getInstanceMethod · 0.45
fillMethod · 0.45

Tested by

no test coverage detected