Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(44)  |  Call(44)  |  Derive(0)  |  Import(0)

src/p/y/Pyfa-HEAD/service/fit.py   Pyfa(Download)
    def getModule(self, fitID, pos):
        fit = eos.db.getFit(fitID)
        return fit.modules[pos]
 
    def newFit(self, shipID, name=None):
    def toggleBoostFit(self, fitID):
        fit = eos.db.getFit(fitID)
        fit.booster = not fit.booster
        eos.db.commit()
 
    def renameFit(self, fitID, newName):
        fit = eos.db.getFit(fitID)
    def deleteFit(self, fitID):
        fit = eos.db.getFit(fitID)
        sFlt = Fleet.getInstance()
        sFlt.removeAssociatedFleetData(fit)
        self.removeProjectedData(fitID)
 
        eos.db.remove(fit)
 
    def copyFit(self, fitID):
        fit = eos.db.getFit(fitID)

src/p/y/Pyfa-HEAD/eos/saveddata/fit.py   Pyfa(Download)
    def importFittingWindow(cls, string, activeFit):
        from eos import db
        activeFit = db.getFit(activeFit)
 
        # if the current fit has mods, do not mess with it. Instead, make new fit