mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-09 06:03:35 +00:00
Cleanup doRequestOAuth
admin_email isn't used; If it's going to be used I'd say: ` if GC-Values{GC_ADMIN): admin_email = GC_Values[GC_ADMIN] else: admin_email = raw_input(u'Please enter your admin email address: ') ` 'oauth2' isn't in API_VER_MAPPING so the remove fails. If it might go back in but you don't want it here, say: ` if u'oauth2' in apis: apis.remove(u'oauth2') `
This commit is contained in:
@ -8742,9 +8742,7 @@ def select_default_scopes(apis):
|
|||||||
return apis
|
return apis
|
||||||
|
|
||||||
def doRequestOAuth():
|
def doRequestOAuth():
|
||||||
admin_email = raw_input(u'Please enter your admin email address: ')
|
|
||||||
apis = API_VER_MAPPING.keys()
|
apis = API_VER_MAPPING.keys()
|
||||||
apis.remove(u'oauth2')
|
|
||||||
all_apis = {}
|
all_apis = {}
|
||||||
for api in apis:
|
for api in apis:
|
||||||
version = getAPIVer(api)
|
version = getAPIVer(api)
|
||||||
@ -8845,7 +8843,7 @@ def doRequestOAuth():
|
|||||||
break
|
break
|
||||||
os.system([u'clear', u'cls'][os.name == u'nt'])
|
os.system([u'clear', u'cls'][os.name == u'nt'])
|
||||||
os.system([u'clear', u'cls'][os.name == u'nt'])
|
os.system([u'clear', u'cls'][os.name == u'nt'])
|
||||||
print u'Please authorize your client id for the %s scopes:' % (len(selected_scopes))
|
print u'Please authorize your service account client id for the %s scopes:' % (len(selected_scopes))
|
||||||
print
|
print
|
||||||
print u','.join(selected_scopes)
|
print u','.join(selected_scopes)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user