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

Method ssoLogin

gui/esiFittings.py:451–463  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

449 self.Centre(wx.BOTH)
450
451 def ssoLogin(self, event):
452 self.popCharList()
453 sChar = Character.getInstance()
454 # Update existing pyfa character, if it doesn't exist - create new
455 char = sChar.getCharacter(event.character.characterName)
456 newChar = False
457 if char is None:
458 char = sChar.new(event.character.characterName)
459 newChar = True
460 char.setSsoCharacter(event.character, config.getClientSecret())
461 sChar.apiFetch(char.ID, APIView.fetchCallback)
462 wx.PostEvent(self.mainFrame, GE.CharListUpdated())
463 event.Skip()
464
465 def kbEvent(self, event):
466 if event.GetKeyCode() == wx.WXK_ESCAPE and event.GetModifiers() == wx.MOD_NONE:

Callers

nothing calls this directly

Calls 6

popCharListMethod · 0.95
getCharacterMethod · 0.80
newMethod · 0.80
apiFetchMethod · 0.80
getInstanceMethod · 0.45
setSsoCharacterMethod · 0.45

Tested by

no test coverage detected