mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-18 02:52:42 +03:00
Frontier Auth: Rename start() method to something more obvious
This commit is contained in:
2 files changed
+5
-5
No files matched your search
@@ -754,7 +754,7 @@ class AppWindow(object):
|
||||
journal_lock.update_lock(self.w)
|
||||
|
||||
# (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
|
||||
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')
|
||||
|
||||
# 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")
|
||||
|
||||
# Export loadout
|
||||
|
||||
+3
-3
@@ -516,7 +516,7 @@ class Session(object):
|
||||
if access_token:
|
||||
logger.debug('We have an access_token')
|
||||
self.auth = None
|
||||
self.start(access_token)
|
||||
self.start_frontier_auth(access_token)
|
||||
return True
|
||||
|
||||
else:
|
||||
@@ -536,7 +536,7 @@ class Session(object):
|
||||
|
||||
try:
|
||||
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
|
||||
|
||||
except Exception:
|
||||
@@ -545,7 +545,7 @@ class Session(object):
|
||||
self.auth = None
|
||||
raise # Bad thing happened
|
||||
|
||||
def start(self, access_token: str) -> None:
|
||||
def start_frontier_auth(self, access_token: str) -> None:
|
||||
"""Start an oAuth2 session."""
|
||||
logger.debug('Starting session')
|
||||
self.session = requests.Session()
|
||||
|
||||
Reference in new issue
Block a user