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

Method init

eos/saveddata/mutator.py:56–66  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

54
55 @reconstructor
56 def init(self):
57 self.__attr = None
58
59 if self.attrID:
60 self.__attr = eos.db.getAttributeInfo(self.attrID)
61 if self.__attr is None:
62 pyfalog.error("Attribute (id: {0}) does not exist", self.attrID)
63 return
64
65 self.build()
66 self.value = self.value # run the validator (to ensure we catch any changed min/max values might CCP release)
67
68 def build(self):
69 # try...except here to catch orphaned mutators. Pretty rare, only happens so far if hacking the database

Callers

nothing calls this directly

Calls 2

buildMethod · 0.95
getAttributeInfoMethod · 0.80

Tested by

no test coverage detected