Пример #1
0
 def delAllCharacters(self):
     chars = eos.db.getCrestCharacters()
     for char in chars:
         eos.db.remove(char)
     self.charCache = {}
     wx.PostEvent(self.mainFrame,
                  GE.SsoLogout(type=CrestModes.USER, numChars=0))
Пример #2
0
 def delCrestCharacter(self, charID):
     char = eos.db.getCrestCharacter(charID)
     del self.charCache[char.ID]
     eos.db.remove(char)
     wx.PostEvent(
         self.mainFrame,
         GE.SsoLogout(type=CrestModes.USER, numChars=len(self.charCache)))
Пример #3
0
    def delSsoCharacter(self, id):
        char = eos.db.getSsoCharacter(id, config.getClientSecret())

        # There is an issue in which the SSO character is not removed from any linked characters - a reference to the
        # sso character remains even though the SSO character is deleted which should have deleted the link. This is a
        # work around until we can figure out why. Manually delete SSOCharacter from all of it's characters
        for x in char.characters:
            x._Character__ssoCharacters.remove(char)
        eos.db.remove(char)
        wx.PostEvent(self.mainFrame, GE.SsoLogout(charID=id))
Пример #4
0
 def logout(self):
     """Logout of implicit character"""
     pyfalog.debug("Character logout")
     self.implicitCharacter = None
     wx.PostEvent(self.mainFrame,
                  GE.SsoLogout(type=self.settings.get('mode')))