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

Method delSsoCharacter

service/esi.py:96–105  ·  view source on GitHub ↗
(self, id)

Source from the content-addressed store, hash-verified

94 self.mainFrame = gui.mainFrame.MainFrame.getInstance()
95
96 def delSsoCharacter(self, id):
97 char = eos.db.getSsoCharacter(id, config.getClientSecret())
98
99 # There is an issue in which the SSO character is not removed from any linked characters - a reference to the
100 # sso character remains even though the SSO character is deleted which should have deleted the link. This is a
101 # work around until we can figure out why. Manually delete SSOCharacter from all of it's characters
102 for x in char.characters:
103 x._Character__ssoCharacters.remove(char)
104 eos.db.remove(char)
105 wx.PostEvent(self.mainFrame, GE.SsoLogout(charID=id))
106
107 def getSsoCharacters(self):
108 chars = eos.db.getSsoCharacters(config.getClientSecret())

Callers 1

delCharMethod · 0.80

Calls 2

getSsoCharacterMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected