gam7 7.10.1__py3-none-any.whl → 7.10.2__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 +18 -6
- {gam7-7.10.1.dist-info → gam7-7.10.2.dist-info}/METADATA +1 -1
- {gam7-7.10.1.dist-info → gam7-7.10.2.dist-info}/RECORD +6 -6
- {gam7-7.10.1.dist-info → gam7-7.10.2.dist-info}/WHEEL +0 -0
- {gam7-7.10.1.dist-info → gam7-7.10.2.dist-info}/entry_points.txt +0 -0
- {gam7-7.10.1.dist-info → gam7-7.10.2.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.02'
|
|
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':
|
|
@@ -71809,7 +71812,8 @@ def printShowMessagesThreads(users, entityType):
|
|
|
71809
71812
|
listResult = callGAPIpages(service, 'list', parameters['listType'],
|
|
71810
71813
|
pageMessage=getPageMessageForWhom(), maxItems=parameters['maxItems'],
|
|
71811
71814
|
throwReasons=GAPI.GMAIL_THROW_REASONS+GAPI.GMAIL_LIST_THROW_REASONS,
|
|
71812
|
-
userId='me', q=parameters['query'],
|
|
71815
|
+
userId='me', q=parameters['query'], labelIds=parameters['labelIds'],
|
|
71816
|
+
fields=parameters['fields'], includeSpamTrash=includeSpamTrash,
|
|
71813
71817
|
maxResults=GC.Values[GC.MESSAGE_MAX_RESULTS])
|
|
71814
71818
|
messageIds = [message['id'] for message in listResult]
|
|
71815
71819
|
else:
|
|
@@ -72607,14 +72611,19 @@ def updateFormRequestUpdateMasks(ubody):
|
|
|
72607
72611
|
break
|
|
72608
72612
|
|
|
72609
72613
|
def _initPublishSettings():
|
|
72610
|
-
return {'publishSettings': {'publishState': {'
|
|
72611
|
-
'updateMask': ''}
|
|
72614
|
+
return {'publishSettings': {'publishState': {}}, 'updateMask': ''}
|
|
72612
72615
|
|
|
72613
72616
|
def _getPublishSettings(myarg, pbody):
|
|
72614
72617
|
if myarg == 'ispublished':
|
|
72615
|
-
|
|
72618
|
+
bval = getBoolean()
|
|
72619
|
+
pbody['publishSettings']['publishState']['isPublished'] = bval
|
|
72620
|
+
if not bval:
|
|
72621
|
+
pbody['publishSettings']['publishState']['isAcceptingResponses'] = bval
|
|
72616
72622
|
elif myarg == 'isacceptingresponses':
|
|
72617
|
-
|
|
72623
|
+
bval = getBoolean()
|
|
72624
|
+
pbody['publishSettings']['publishState']['isAcceptingResponses'] = bval
|
|
72625
|
+
if bval:
|
|
72626
|
+
pbody['publishSettings']['publishState']['isPublished'] = bval
|
|
72618
72627
|
else:
|
|
72619
72628
|
return False
|
|
72620
72629
|
pbody['updateMask'] = 'publishState'
|
|
@@ -72808,6 +72817,9 @@ def printShowForms(users):
|
|
|
72808
72817
|
result = callGAPI(gform.forms(), 'get',
|
|
72809
72818
|
throwReasons=[GAPI.NOT_FOUND, GAPI.PERMISSION_DENIED],
|
|
72810
72819
|
formId=formId)
|
|
72820
|
+
if 'publishSettings' in result and 'publishState' in result['publishSettings']:
|
|
72821
|
+
result['publishSettings']['publishState'].setdefault('isPublished', False)
|
|
72822
|
+
result['publishSettings']['publishState'].setdefault('isAcceptingResponses', False)
|
|
72811
72823
|
if not csvPF:
|
|
72812
72824
|
if not FJQC.formatJSON:
|
|
72813
72825
|
printEntity([Ent.FORM, result['formId']], j, jcount)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
gam/__init__.py,sha256=
|
|
1
|
+
gam/__init__.py,sha256=0tfJVNeH1l47v2sr8o2Pbji48zIKWeuOG3Tw71RedRs,3532028
|
|
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.2.dist-info/METADATA,sha256=HWD4kRxt5a3KpGcPRUv3XlFABH_RP4OlazSgrReISEk,2978
|
|
69
|
+
gam7-7.10.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
70
|
+
gam7-7.10.2.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
|
|
71
|
+
gam7-7.10.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
72
|
+
gam7-7.10.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|