gam7 7.15.0__py3-none-any.whl → 7.15.1__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 +12 -3
- {gam7-7.15.0.dist-info → gam7-7.15.1.dist-info}/METADATA +1 -1
- {gam7-7.15.0.dist-info → gam7-7.15.1.dist-info}/RECORD +6 -6
- {gam7-7.15.0.dist-info → gam7-7.15.1.dist-info}/WHEEL +0 -0
- {gam7-7.15.0.dist-info → gam7-7.15.1.dist-info}/entry_points.txt +0 -0
- {gam7-7.15.0.dist-info → gam7-7.15.1.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.15.
|
|
28
|
+
__version__ = '7.15.01'
|
|
29
29
|
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
|
30
30
|
|
|
31
31
|
#pylint: disable=wrong-import-position
|
|
@@ -60309,7 +60309,7 @@ def _checkForExistingShortcut(drive, fileId, fileName, parentId):
|
|
|
60309
60309
|
supportsAllDrives=True, includeItemsFromAllDrives=True,
|
|
60310
60310
|
q=f"shortcutDetails.targetId = '{fileId}' and trashed = False", fields='files(id,name,parents)')['files']
|
|
60311
60311
|
for shortcut in existingShortcuts:
|
|
60312
|
-
if parentId in shortcut
|
|
60312
|
+
if parentId in shortcut.get('parents', []) and fileName == shortcut['name']:
|
|
60313
60313
|
return shortcut['id']
|
|
60314
60314
|
except (GAPI.invalidQuery, GAPI.invalid, GAPI.serviceNotAvailable, GAPI.authError, GAPI.domainPolicy):
|
|
60315
60315
|
pass
|
|
@@ -65885,6 +65885,10 @@ SHAREDDRIVE_RESTRICTIONS_MAP = {
|
|
|
65885
65885
|
'sharingfoldersrequiresorganizerpermission': 'sharingFoldersRequiresOrganizerPermission',
|
|
65886
65886
|
'teammembersonly': 'driveMembersOnly',
|
|
65887
65887
|
}
|
|
65888
|
+
SHAREDDRIVE_DOWNLOAD_RESTRICTIONS_MAP = {
|
|
65889
|
+
'restrictedforreaders': 'downloadrestrictedforreaders',
|
|
65890
|
+
'restrictedforwriters': 'downloadrestrictedforwriters',
|
|
65891
|
+
}
|
|
65888
65892
|
|
|
65889
65893
|
def _getSharedDriveRestrictions(myarg, body):
|
|
65890
65894
|
def _setRestriction(restriction):
|
|
@@ -65899,7 +65903,12 @@ def _getSharedDriveRestrictions(myarg, body):
|
|
|
65899
65903
|
|
|
65900
65904
|
if myarg.startswith('restrictions.'):
|
|
65901
65905
|
_, subField = myarg.split('.', 1)
|
|
65902
|
-
if subField
|
|
65906
|
+
if subField.startswith('downloadrestrictions.'):
|
|
65907
|
+
_, subField = subField.split('.', 1)
|
|
65908
|
+
if subField in SHAREDDRIVE_DOWNLOAD_RESTRICTIONS_MAP:
|
|
65909
|
+
_setRestriction(SHAREDDRIVE_DOWNLOAD_RESTRICTIONS_MAP[subField])
|
|
65910
|
+
return True
|
|
65911
|
+
elif subField in SHAREDDRIVE_RESTRICTIONS_MAP:
|
|
65903
65912
|
_setRestriction(subField)
|
|
65904
65913
|
return True
|
|
65905
65914
|
invalidChoiceExit(subField, SHAREDDRIVE_RESTRICTIONS_MAP, True)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
gam/__init__.py,sha256=
|
|
1
|
+
gam/__init__.py,sha256=YUqLAFg0n395rV4CrtgHf_nLCDT8tlhg1Sffy8X70bg,3571368
|
|
2
2
|
gam/__main__.py,sha256=amz0-959ph6zkZKqjaar4n60yho-T37w6qWI36qx0CA,1049
|
|
3
3
|
gam/cacerts.pem,sha256=82Ak7btW_2XvocLUvAwPmpx8Chi0oqtZUG1gseLK_t4,50235
|
|
4
4
|
gam/cbcm-v1.1beta1.json,sha256=xO5XloCQQULmPbFBx5bckdqmbLFQ7sJ2TImhE1ysDIY,19439
|
|
@@ -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.15.
|
|
69
|
-
gam7-7.15.
|
|
70
|
-
gam7-7.15.
|
|
71
|
-
gam7-7.15.
|
|
72
|
-
gam7-7.15.
|
|
68
|
+
gam7-7.15.1.dist-info/METADATA,sha256=7aliHSGufhmcqPqi14F4FrSbpSX3k95C_As8GO76ncc,2940
|
|
69
|
+
gam7-7.15.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
70
|
+
gam7-7.15.1.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
|
|
71
|
+
gam7-7.15.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
72
|
+
gam7-7.15.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|