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

Method getEntitiesFromContext

gui/characterEditor.py:94–108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92 self.SetEditorValidator(CharacterTextValidor)
93
94 def getEntitiesFromContext(self):
95 sChar = Character.getInstance()
96 charList = sorted(sChar.getCharacterList(), key=lambda c: (not c.ro, c.name))
97
98 # Do some processing to ensure that we have All 0 and All 5 at the top
99 all5 = sChar.all5()
100 all0 = sChar.all0()
101
102 charList.remove(all5)
103 charList.remove(all0)
104
105 charList.insert(0, all5)
106 charList.insert(0, all0)
107
108 return charList
109
110 def DoNew(self, name):
111 sChar = Character.getInstance()

Callers

nothing calls this directly

Calls 6

getCharacterListMethod · 0.80
all5Method · 0.80
all0Method · 0.80
getInstanceMethod · 0.45
removeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected