gam7 7.5.13__py3-none-any.whl → 7.5.15__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of gam7 might be problematic. Click here for more details.
- gam/__init__.py +7 -2
- gam/gamlib/glskus.py +2 -0
- {gam7-7.5.13.dist-info → gam7-7.5.15.dist-info}/METADATA +1 -1
- {gam7-7.5.13.dist-info → gam7-7.5.15.dist-info}/RECORD +7 -7
- {gam7-7.5.13.dist-info → gam7-7.5.15.dist-info}/WHEEL +0 -0
- {gam7-7.5.13.dist-info → gam7-7.5.15.dist-info}/entry_points.txt +0 -0
- {gam7-7.5.13.dist-info → gam7-7.5.15.dist-info}/licenses/LICENSE +0 -0
gam/__init__.py
CHANGED
|
@@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki
|
|
|
25
25
|
"""
|
|
26
26
|
|
|
27
27
|
__author__ = 'GAM Team <google-apps-manager@googlegroups.com>'
|
|
28
|
-
__version__ = '7.05.
|
|
28
|
+
__version__ = '7.05.15'
|
|
29
29
|
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
|
30
30
|
|
|
31
31
|
#pylint: disable=wrong-import-position
|
|
@@ -262,6 +262,7 @@ MIMETYPE_GA_JAM = f'{APPLICATION_VND_GOOGLE_APPS}jam'
|
|
|
262
262
|
MIMETYPE_GA_MAP = f'{APPLICATION_VND_GOOGLE_APPS}map'
|
|
263
263
|
MIMETYPE_GA_PRESENTATION = f'{APPLICATION_VND_GOOGLE_APPS}presentation'
|
|
264
264
|
MIMETYPE_GA_SCRIPT = f'{APPLICATION_VND_GOOGLE_APPS}script'
|
|
265
|
+
MIMETYPE_GA_SCRIPT_JSON = f'{APPLICATION_VND_GOOGLE_APPS}script+json'
|
|
265
266
|
MIMETYPE_GA_SHORTCUT = f'{APPLICATION_VND_GOOGLE_APPS}shortcut'
|
|
266
267
|
MIMETYPE_GA_3P_SHORTCUT = f'{APPLICATION_VND_GOOGLE_APPS}drive-sdk'
|
|
267
268
|
MIMETYPE_GA_SITE = f'{APPLICATION_VND_GOOGLE_APPS}site'
|
|
@@ -4446,7 +4447,7 @@ def handleOAuthTokenError(e, softErrors, displayError=False, i=0, count=0):
|
|
|
4446
4447
|
if not GM.Globals[GM.CURRENT_SVCACCT_USER]:
|
|
4447
4448
|
ClientAPIAccessDeniedExit()
|
|
4448
4449
|
if softErrors:
|
|
4449
|
-
|
|
4450
|
+
entityActionFailedWarning([Ent.USER, GM.Globals[GM.CURRENT_SVCACCT_USER], Ent.USER, None], errMsg, i, count)
|
|
4450
4451
|
return None
|
|
4451
4452
|
systemErrorExit(SERVICE_NOT_APPLICABLE_RC, Msg.SERVICE_NOT_APPLICABLE_THIS_ADDRESS.format(GM.Globals[GM.CURRENT_SVCACCT_USER]))
|
|
4452
4453
|
if errMsg in API.OAUTH2_UNAUTHORIZED_ERRORS:
|
|
@@ -57402,6 +57403,8 @@ def createDriveFile(users):
|
|
|
57402
57403
|
if parameters[DFA_LOCALFILEPATH]:
|
|
57403
57404
|
if parameters[DFA_LOCALFILEPATH] != '-' and parameters[DFA_PRESERVE_FILE_TIMES]:
|
|
57404
57405
|
setPreservedFileTimes(body, parameters, False)
|
|
57406
|
+
if body.get('mimeType') == MIMETYPE_GA_SCRIPT_JSON:
|
|
57407
|
+
parameters[DFA_LOCALMIMETYPE] = body['mimeType']
|
|
57405
57408
|
media_body = getMediaBody(parameters)
|
|
57406
57409
|
elif parameters[DFA_URL]:
|
|
57407
57410
|
media_body = getMediaBody(parameters)
|
|
@@ -60439,6 +60442,7 @@ GOOGLEDOC_VALID_EXTENSIONS_MAP = {
|
|
|
60439
60442
|
MIMETYPE_GA_DOCUMENT: ['.docx', '.epub', '.html', '.odt', '.pdf', '.rtf', '.txt', '.zip'],
|
|
60440
60443
|
MIMETYPE_GA_JAM: ['.pdf'],
|
|
60441
60444
|
MIMETYPE_GA_PRESENTATION: ['.pdf', '.pptx', '.odp', '.txt'],
|
|
60445
|
+
MIMETYPE_GA_SCRIPT: ['.json'],
|
|
60442
60446
|
MIMETYPE_GA_SPREADSHEET: ['.csv', '.ods', '.pdf', '.tsv', '.xlsx', '.zip'],
|
|
60443
60447
|
}
|
|
60444
60448
|
|
|
@@ -60474,6 +60478,7 @@ DOCUMENT_FORMATS_MAP = {
|
|
|
60474
60478
|
'html': [{'mime': 'text/html', 'ext': '.html'}],
|
|
60475
60479
|
'jpeg': [{'mime': 'image/jpeg', 'ext': '.jpeg'}],
|
|
60476
60480
|
'jpg': [{'mime': 'image/jpeg', 'ext': '.jpg'}],
|
|
60481
|
+
'json': [{'mime': MIMETYPE_GA_SCRIPT_JSON, 'ext': '.json'}],
|
|
60477
60482
|
'mht': [{'mime': 'message/rfc822', 'ext': 'mht'}],
|
|
60478
60483
|
'odp': [{'mime': 'application/vnd.oasis.opendocument.presentation', 'ext': '.odp'}],
|
|
60479
60484
|
'ods': [{'mime': 'application/x-vnd.oasis.opendocument.spreadsheet', 'ext': '.ods'},
|
gam/gamlib/glskus.py
CHANGED
|
@@ -87,6 +87,8 @@ _SKUS = {
|
|
|
87
87
|
'product': '101038', 'aliases': ['appsheetplus', 'appsheetenterpriseplus'], 'displayName': 'AppSheet Enterprise Plus'},
|
|
88
88
|
'1010390001': {
|
|
89
89
|
'product': '101039', 'aliases': ['assuredcontrols'], 'displayName': 'Assured Controls'},
|
|
90
|
+
'1010390002': {
|
|
91
|
+
'product': '101039', 'aliases': ['assuredcontrolsplus'], 'displayName': 'Assured Controls Plus'},
|
|
90
92
|
'1010400001': {
|
|
91
93
|
'product': '101040', 'aliases': ['beyondcorp', 'beyondcorpenterprise', 'bce', 'cep', 'chromeenterprisepremium'], 'displayName': 'Chrome Enterprise Premium'},
|
|
92
94
|
'1010430001': {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
gam/__init__.py,sha256=
|
|
1
|
+
gam/__init__.py,sha256=7Eir0fwDwfwLMnd9ATkWeI0HYiEk4510od0N_ghrDQk,3482168
|
|
2
2
|
gam/__main__.py,sha256=amz0-959ph6zkZKqjaar4n60yho-T37w6qWI36qx0CA,1049
|
|
3
3
|
gam/cacerts.pem,sha256=nJuWha0xm5dHw_5ptGphwRoO-r36Ccpqiww9pCEDbSc,67484
|
|
4
4
|
gam/cbcm-v1.1beta1.json,sha256=xO5XloCQQULmPbFBx5bckdqmbLFQ7sJ2TImhE1ysDIY,19439
|
|
@@ -32,7 +32,7 @@ gam/gamlib/glgdata.py,sha256=weRppttWm6uRyqtBoGPKoHiNZ2h28nhfUV4J_mbCszY,2707
|
|
|
32
32
|
gam/gamlib/glglobals.py,sha256=B0kCz4K6PO1-n3eZI_lvdRG99Ane1-dH4zS4J4aymlI,9566
|
|
33
33
|
gam/gamlib/glindent.py,sha256=RfBa2LDfLIqPLL5vMfC689TCVmqn8xf-qulSzkiatrc,1228
|
|
34
34
|
gam/gamlib/glmsgs.py,sha256=fUEwnzJsyThJDgrqslhXFLp7Ah_5e3VuyGNWAJKRi5o,33260
|
|
35
|
-
gam/gamlib/glskus.py,sha256=
|
|
35
|
+
gam/gamlib/glskus.py,sha256=Gi0jjrSGwhCD4SvtqQfuAXwtEiL2zU4c8qXdxO1yY9k,15058
|
|
36
36
|
gam/gamlib/gluprop.py,sha256=IyPLCyvn7-NHTUenM71YPQPXRZXx6CB5q-GtJ-FYd1c,11461
|
|
37
37
|
gam/gamlib/glverlibs.py,sha256=XXYhmjOVti78JTy7NNr4ShIwiOX7LrfrmFSlqSWixrE,1077
|
|
38
38
|
gam/gamlib/yubikey.py,sha256=-UC-3oue9qarYK3LT7YL6Gmqs7TMK8oz9_AoxdaG2FA,7925
|
|
@@ -65,8 +65,8 @@ gam/googleapiclient/discovery_cache/base.py,sha256=yCDPtxnbNN-p5_9fzBacC6P3wcUPl
|
|
|
65
65
|
gam/googleapiclient/discovery_cache/file_cache.py,sha256=sim3Mg4HgRYo3vX75jvcKy_aV568EvIrtBfvfbw-044,4774
|
|
66
66
|
gam/iso8601/__init__.py,sha256=Z2PsYbXgAH5a5xzUvgczCboPzqWpm65kRcIngCnhViU,1218
|
|
67
67
|
gam/iso8601/iso8601.py,sha256=Li2FHZ4sBTWuthuQhyCvmvj0j6At8JbGzkSv2fc2RHU,4384
|
|
68
|
-
gam7-7.5.
|
|
69
|
-
gam7-7.5.
|
|
70
|
-
gam7-7.5.
|
|
71
|
-
gam7-7.5.
|
|
72
|
-
gam7-7.5.
|
|
68
|
+
gam7-7.5.15.dist-info/METADATA,sha256=FQzlMBzuewfS_WQfAb6WNFWAAm6AL-npFYLtPrw7rXc,2889
|
|
69
|
+
gam7-7.5.15.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
70
|
+
gam7-7.5.15.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
|
|
71
|
+
gam7-7.5.15.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
72
|
+
gam7-7.5.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|