gam7 7.10.1__py3-none-any.whl → 7.10.3__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 +26 -10
- {gam7-7.10.1.dist-info → gam7-7.10.3.dist-info}/METADATA +1 -1
- {gam7-7.10.1.dist-info → gam7-7.10.3.dist-info}/RECORD +6 -6
- {gam7-7.10.1.dist-info → gam7-7.10.3.dist-info}/WHEEL +0 -0
- {gam7-7.10.1.dist-info → gam7-7.10.3.dist-info}/entry_points.txt +0 -0
- {gam7-7.10.1.dist-info → gam7-7.10.3.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.10.
|
|
28
|
+
__version__ = '7.10.03'
|
|
29
29
|
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
|
30
30
|
|
|
31
31
|
#pylint: disable=wrong-import-position
|
|
@@ -70133,6 +70133,7 @@ def _initMessageThreadParameters(entityType, doIt, maxToProcess):
|
|
|
70133
70133
|
'query': '', 'queryTimes': {},
|
|
70134
70134
|
'entityType': entityType, 'messageEntity': None, 'doIt': doIt, 'quick': True,
|
|
70135
70135
|
'labelMatchPattern': None, 'senderMatchPattern': None,
|
|
70136
|
+
'labelIds': [],
|
|
70136
70137
|
'maxToProcess': maxToProcess, 'maxItems': 0, 'maxMessagesPerThread': 0,
|
|
70137
70138
|
'maxToKeywords': [MESSAGES_MAX_TO_KEYWORDS[Act.Get()], 'maxtoprocess'],
|
|
70138
70139
|
'listType': listType, 'fields': f'nextPageToken,{listType}(id)'}
|
|
@@ -70165,6 +70166,8 @@ def _getMessageSelectParameters(myarg, parameters):
|
|
|
70165
70166
|
parameters['labelMatchPattern'] = getREPattern(re.IGNORECASE)
|
|
70166
70167
|
elif myarg == 'sendermatchpattern':
|
|
70167
70168
|
parameters['senderMatchPattern'] = getREPattern(re.IGNORECASE)
|
|
70169
|
+
elif myarg == 'labelids':
|
|
70170
|
+
parameters['labelIds'].extend(getEntityList(Cmd.OB_LABEL_ID_LIST))
|
|
70168
70171
|
elif myarg == 'ids':
|
|
70169
70172
|
parameters['messageEntity'] = getUserObjectEntity(Cmd.OB_MESSAGE_ID, parameters['entityType'])
|
|
70170
70173
|
elif myarg == 'quick':
|
|
@@ -70264,7 +70267,8 @@ def archiveMessages(users):
|
|
|
70264
70267
|
listResult = callGAPIpages(service, 'list', parameters['listType'],
|
|
70265
70268
|
pageMessage=getPageMessageForWhom(), maxItems=parameters['maxItems'],
|
|
70266
70269
|
throwReasons=GAPI.GMAIL_THROW_REASONS+GAPI.GMAIL_LIST_THROW_REASONS,
|
|
70267
|
-
userId='me', q=parameters['query'],
|
|
70270
|
+
userId='me', q=parameters['query'], labelIds=parameters['labelIds'],
|
|
70271
|
+
fields=parameters['fields'],
|
|
70268
70272
|
maxResults=GC.Values[GC.MESSAGE_MAX_RESULTS])
|
|
70269
70273
|
messageIds = [message['id'] for message in listResult]
|
|
70270
70274
|
except (GAPI.failedPrecondition, GAPI.permissionDenied, GAPI.invalid, GAPI.invalidArgument) as e:
|
|
@@ -70453,7 +70457,8 @@ def _processMessagesThreads(users, entityType):
|
|
|
70453
70457
|
listResult = callGAPIpages(service, 'list', parameters['listType'],
|
|
70454
70458
|
pageMessage=getPageMessageForWhom(), maxItems=parameters['maxItems'],
|
|
70455
70459
|
throwReasons=GAPI.GMAIL_THROW_REASONS+GAPI.GMAIL_LIST_THROW_REASONS,
|
|
70456
|
-
userId='me', q=parameters['query'],
|
|
70460
|
+
userId='me', q=parameters['query'], labelIds=parameters['labelIds'],
|
|
70461
|
+
fields=parameters['fields'], includeSpamTrash=includeSpamTrash,
|
|
70457
70462
|
maxResults=GC.Values[GC.MESSAGE_MAX_RESULTS])
|
|
70458
70463
|
messageIds = [message['id'] for message in listResult]
|
|
70459
70464
|
else:
|
|
@@ -70569,7 +70574,8 @@ def exportMessagesThreads(users, entityType):
|
|
|
70569
70574
|
listResult = callGAPIpages(service, 'list', parameters['listType'],
|
|
70570
70575
|
pageMessage=getPageMessageForWhom(), maxItems=parameters['maxItems'],
|
|
70571
70576
|
throwReasons=GAPI.GMAIL_THROW_REASONS+GAPI.GMAIL_LIST_THROW_REASONS,
|
|
70572
|
-
userId='me', q=parameters['query'],
|
|
70577
|
+
userId='me', q=parameters['query'], labelIds=parameters['labelIds'],
|
|
70578
|
+
fields=parameters['fields'], includeSpamTrash=includeSpamTrash,
|
|
70573
70579
|
maxResults=GC.Values[GC.MESSAGE_MAX_RESULTS])
|
|
70574
70580
|
entityIds = [entity['id'] for entity in listResult]
|
|
70575
70581
|
except (GAPI.failedPrecondition, GAPI.permissionDenied, GAPI.invalid, GAPI.invalidArgument) as e:
|
|
@@ -70704,7 +70710,8 @@ def forwardMessagesThreads(users, entityType):
|
|
|
70704
70710
|
listResult = callGAPIpages(service, 'list', parameters['listType'],
|
|
70705
70711
|
pageMessage=getPageMessageForWhom(), maxItems=parameters['maxItems'],
|
|
70706
70712
|
throwReasons=GAPI.GMAIL_THROW_REASONS+GAPI.GMAIL_LIST_THROW_REASONS,
|
|
70707
|
-
userId='me', q=parameters['query'],
|
|
70713
|
+
userId='me', q=parameters['query'], labelIds=parameters['labelIds'],
|
|
70714
|
+
fields=parameters['fields'], includeSpamTrash=includeSpamTrash,
|
|
70708
70715
|
maxResults=GC.Values[GC.MESSAGE_MAX_RESULTS])
|
|
70709
70716
|
entityIds = [entity['id'] for entity in listResult]
|
|
70710
70717
|
except (GAPI.failedPrecondition, GAPI.permissionDenied, GAPI.invalid, GAPI.invalidArgument) as e:
|
|
@@ -71809,7 +71816,8 @@ def printShowMessagesThreads(users, entityType):
|
|
|
71809
71816
|
listResult = callGAPIpages(service, 'list', parameters['listType'],
|
|
71810
71817
|
pageMessage=getPageMessageForWhom(), maxItems=parameters['maxItems'],
|
|
71811
71818
|
throwReasons=GAPI.GMAIL_THROW_REASONS+GAPI.GMAIL_LIST_THROW_REASONS,
|
|
71812
|
-
userId='me', q=parameters['query'],
|
|
71819
|
+
userId='me', q=parameters['query'], labelIds=parameters['labelIds'],
|
|
71820
|
+
fields=parameters['fields'], includeSpamTrash=includeSpamTrash,
|
|
71813
71821
|
maxResults=GC.Values[GC.MESSAGE_MAX_RESULTS])
|
|
71814
71822
|
messageIds = [message['id'] for message in listResult]
|
|
71815
71823
|
else:
|
|
@@ -72607,14 +72615,19 @@ def updateFormRequestUpdateMasks(ubody):
|
|
|
72607
72615
|
break
|
|
72608
72616
|
|
|
72609
72617
|
def _initPublishSettings():
|
|
72610
|
-
return {'publishSettings': {'publishState': {'
|
|
72611
|
-
'updateMask': ''}
|
|
72618
|
+
return {'publishSettings': {'publishState': {}}, 'updateMask': ''}
|
|
72612
72619
|
|
|
72613
72620
|
def _getPublishSettings(myarg, pbody):
|
|
72614
72621
|
if myarg == 'ispublished':
|
|
72615
|
-
|
|
72622
|
+
bval = getBoolean()
|
|
72623
|
+
pbody['publishSettings']['publishState']['isPublished'] = bval
|
|
72624
|
+
if not bval:
|
|
72625
|
+
pbody['publishSettings']['publishState']['isAcceptingResponses'] = bval
|
|
72616
72626
|
elif myarg == 'isacceptingresponses':
|
|
72617
|
-
|
|
72627
|
+
bval = getBoolean()
|
|
72628
|
+
pbody['publishSettings']['publishState']['isAcceptingResponses'] = bval
|
|
72629
|
+
if bval:
|
|
72630
|
+
pbody['publishSettings']['publishState']['isPublished'] = bval
|
|
72618
72631
|
else:
|
|
72619
72632
|
return False
|
|
72620
72633
|
pbody['updateMask'] = 'publishState'
|
|
@@ -72808,6 +72821,9 @@ def printShowForms(users):
|
|
|
72808
72821
|
result = callGAPI(gform.forms(), 'get',
|
|
72809
72822
|
throwReasons=[GAPI.NOT_FOUND, GAPI.PERMISSION_DENIED],
|
|
72810
72823
|
formId=formId)
|
|
72824
|
+
if 'publishSettings' in result and 'publishState' in result['publishSettings']:
|
|
72825
|
+
result['publishSettings']['publishState'].setdefault('isPublished', False)
|
|
72826
|
+
result['publishSettings']['publishState'].setdefault('isAcceptingResponses', False)
|
|
72811
72827
|
if not csvPF:
|
|
72812
72828
|
if not FJQC.formatJSON:
|
|
72813
72829
|
printEntity([Ent.FORM, result['formId']], j, jcount)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
gam/__init__.py,sha256=
|
|
1
|
+
gam/__init__.py,sha256=JzySfzYuzMeCm1P16rv9PgAlftWL4GJrCRyWK-bAc0U,3532300
|
|
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.10.
|
|
69
|
-
gam7-7.10.
|
|
70
|
-
gam7-7.10.
|
|
71
|
-
gam7-7.10.
|
|
72
|
-
gam7-7.10.
|
|
68
|
+
gam7-7.10.3.dist-info/METADATA,sha256=uS18Csl28kbbMa1NlMs6rWeBhzrf616tpHHQxDRr0KE,2978
|
|
69
|
+
gam7-7.10.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
70
|
+
gam7-7.10.3.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
|
|
71
|
+
gam7-7.10.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
72
|
+
gam7-7.10.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|