def onStateLobby(self): trace('onStateLobby') try: accountDBID = getCurrentAccountDBID() if accountDBID is not None and self.currentAccountDBID != accountDBID: self.currentAccountDBID = accountDBID config.token = config.XvmServicesToken({'accountDBID':accountDBID}) config.token.saveLastAccountDBID() self.xvmServicesInitialized = False self.initializeXvmServices() reserve.init(self.currentAccountDBID) except Exception, ex: err(traceback.format_exc())
def onStateLogin(self): trace('onStateLogin') if self.currentAccountDBID is not None: self.currentAccountDBID = None config.token = config.XvmServicesToken() reserve.init(None)