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

Method init

eos/saveddata/cargo.py:43–55  ·  view source on GitHub ↗

Initialize cargo from the database and validate

(self)

Source from the content-addressed store, hash-verified

41
42 @reconstructor
43 def init(self):
44 """Initialize cargo from the database and validate"""
45 self.__item = None
46
47 if self.itemID:
48 self.__item = eos.db.getItem(self.itemID)
49 if self.__item is None:
50 pyfalog.error("Item (id: {0}) does not exist", self.itemID)
51 return
52
53 self.__itemModifiedAttributes = ModifiedAttributeDict()
54 self.__itemModifiedAttributes.original = self.__item.attributes
55 self.__itemModifiedAttributes.overrides = self.__item.overrides
56
57 @property
58 def itemModifiedAttributes(self):

Callers

nothing calls this directly

Calls 2

getItemMethod · 0.80

Tested by

no test coverage detected