login: login manager doesn't need doneEvent
This commit is contained in:
parent
1ed01e7746
commit
b58d21c70e
2 changed files with 3 additions and 6 deletions
|
@ -7,11 +7,9 @@ class AstronLoginManager(DistributedObjectGlobal):
|
||||||
|
|
||||||
def __init__(self, cr):
|
def __init__(self, cr):
|
||||||
DistributedObjectGlobal.__init__(self, cr)
|
DistributedObjectGlobal.__init__(self, cr)
|
||||||
self.doneEvent = None
|
|
||||||
self._callback = None
|
self._callback = None
|
||||||
|
|
||||||
def handleRequestLogin(self, doneEvent):
|
def handleRequestLogin(self):
|
||||||
self.doneEvent = doneEvent
|
|
||||||
playToken = self.cr.playToken or 'dev'
|
playToken = self.cr.playToken or 'dev'
|
||||||
self.sendRequestLogin(playToken)
|
self.sendRequestLogin(playToken)
|
||||||
|
|
||||||
|
|
|
@ -255,7 +255,7 @@ class LoginScreen(StateData.StateData, GuiScreen.GuiScreen):
|
||||||
|
|
||||||
def handleHelloResp(self):
|
def handleHelloResp(self):
|
||||||
self.cr.startHeartbeat()
|
self.cr.startHeartbeat()
|
||||||
self.cr.astronLoginManager.handleRequestLogin(self.doneEvent)
|
self.cr.astronLoginManager.handleRequestLogin()
|
||||||
|
|
||||||
def getExtendedErrorMsg(self, errorString):
|
def getExtendedErrorMsg(self, errorString):
|
||||||
prefix = 'Bad DC Version Compare'
|
prefix = 'Bad DC Version Compare'
|
||||||
|
@ -591,8 +591,7 @@ class LoginScreen(StateData.StateData, GuiScreen.GuiScreen):
|
||||||
canChat = createFriendsWithChat == "YES" or createFriendsWithChat == "CODE"
|
canChat = createFriendsWithChat == "YES" or createFriendsWithChat == "CODE"
|
||||||
self.cr.secretChatAllowed = canChat
|
self.cr.secretChatAllowed = canChat
|
||||||
if base.logPrivateInfo:
|
if base.logPrivateInfo:
|
||||||
self.notify.info(
|
self.notify.info("CREATE_FRIENDS_WITH_CHAT from game server login: %s %s" % (createFriendsWithChat, canChat))
|
||||||
"CREATE_FRIENDS_WITH_CHAT from game server login: %s %s" % (createFriendsWithChat, canChat))
|
|
||||||
self.chatCodeCreationRule = responseData.get('chatCodeCreationRule')
|
self.chatCodeCreationRule = responseData.get('chatCodeCreationRule')
|
||||||
self.cr.chatChatCodeCreationRule = self.chatCodeCreationRule
|
self.cr.chatChatCodeCreationRule = self.chatCodeCreationRule
|
||||||
if base.logPrivateInfo:
|
if base.logPrivateInfo:
|
||||||
|
|
Loading…
Reference in a new issue