MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / init

Method init

eos/saveddata/booster.py:48–62  ·  view source on GitHub ↗

Initialize a booster from the database and validate

(self)

Source from the content-addressed store, hash-verified

46
47 @reconstructor
48 def init(self):
49 """Initialize a booster from the database and validate"""
50 self.__item = None
51
52 if self.itemID:
53 self.__item = eos.db.getItem(self.itemID)
54 if self.__item is None:
55 pyfalog.error("Item (id: {0}) does not exist", self.itemID)
56 return
57
58 if self.isInvalid:
59 pyfalog.error("Item (id: {0}) is not a Booster", self.itemID)
60 return
61
62 self.build()
63
64 def build(self):
65 """ Build object. Assumes proper and valid item already set """

Callers

nothing calls this directly

Calls 2

buildMethod · 0.95
getItemMethod · 0.80

Tested by

no test coverage detected