mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-04 01:21:03 +03:00
Frontier Auth: Rename start()
method to something more obvious
This commit is contained in:
parent
7339cc59ed
commit
81b5d015fd
@ -754,7 +754,7 @@ class AppWindow(object):
|
|||||||
journal_lock.update_lock(self.w)
|
journal_lock.update_lock(self.w)
|
||||||
|
|
||||||
# (Re-)install log monitoring
|
# (Re-)install log monitoring
|
||||||
if not monitor.start(self.w):
|
if not monitor.start_frontier_auth(self.w):
|
||||||
# LANG: ED Journal file location appears to be in error
|
# LANG: ED Journal file location appears to be in error
|
||||||
self.status['text'] = _('Error: Check E:D journal file location')
|
self.status['text'] = _('Error: Check E:D journal file location')
|
||||||
|
|
||||||
@ -1222,7 +1222,7 @@ class AppWindow(object):
|
|||||||
logger.info('Monitor: Disable WinSparkle automatic update checks')
|
logger.info('Monitor: Disable WinSparkle automatic update checks')
|
||||||
|
|
||||||
# Can't start dashboard monitoring
|
# Can't start dashboard monitoring
|
||||||
if not dashboard.start(self.w, monitor.started):
|
if not dashboard.start_frontier_auth(self.w, monitor.started):
|
||||||
logger.info("Can't start Status monitoring")
|
logger.info("Can't start Status monitoring")
|
||||||
|
|
||||||
# Export loadout
|
# Export loadout
|
||||||
|
@ -516,7 +516,7 @@ class Session(object):
|
|||||||
if access_token:
|
if access_token:
|
||||||
logger.debug('We have an access_token')
|
logger.debug('We have an access_token')
|
||||||
self.auth = None
|
self.auth = None
|
||||||
self.start(access_token)
|
self.start_frontier_auth(access_token)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
else:
|
else:
|
||||||
@ -536,7 +536,7 @@ class Session(object):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
logger.debug('Trying authorize with payload from handler')
|
logger.debug('Trying authorize with payload from handler')
|
||||||
self.start(self.auth.authorize(protocolhandler.lastpayload)) # type: ignore
|
self.start_frontier_auth(self.auth.authorize(protocolhandler.lastpayload)) # type: ignore
|
||||||
self.auth = None
|
self.auth = None
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
@ -545,7 +545,7 @@ class Session(object):
|
|||||||
self.auth = None
|
self.auth = None
|
||||||
raise # Bad thing happened
|
raise # Bad thing happened
|
||||||
|
|
||||||
def start(self, access_token: str) -> None:
|
def start_frontier_auth(self, access_token: str) -> None:
|
||||||
"""Start an oAuth2 session."""
|
"""Start an oAuth2 session."""
|
||||||
logger.debug('Starting session')
|
logger.debug('Starting session')
|
||||||
self.session = requests.Session()
|
self.session = requests.Session()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user