gam7 7.5.6__py3-none-any.whl → 7.5.7__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 +23 -17
- {gam7-7.5.6.dist-info → gam7-7.5.7.dist-info}/METADATA +1 -1
- {gam7-7.5.6.dist-info → gam7-7.5.7.dist-info}/RECORD +6 -6
- {gam7-7.5.6.dist-info → gam7-7.5.7.dist-info}/WHEEL +0 -0
- {gam7-7.5.6.dist-info → gam7-7.5.7.dist-info}/entry_points.txt +0 -0
- {gam7-7.5.6.dist-info → gam7-7.5.7.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.07'
|
|
29
29
|
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
|
30
30
|
|
|
31
31
|
#pylint: disable=wrong-import-position
|
|
@@ -38938,6 +38938,22 @@ def _setEventRecurrenceTimeZone(cal, calId, body, parameters, i, count):
|
|
|
38938
38938
|
body['end']['timeZone'] = timeZone
|
|
38939
38939
|
return True
|
|
38940
38940
|
|
|
38941
|
+
def _getEventDaysOfWeek(event):
|
|
38942
|
+
for attr in ['start', 'end']:
|
|
38943
|
+
if attr in event:
|
|
38944
|
+
if 'date' in event[attr]:
|
|
38945
|
+
try:
|
|
38946
|
+
dateTime = datetime.datetime.strptime(event[attr]['date'], YYYYMMDD_FORMAT)
|
|
38947
|
+
event[attr]['dayOfWeek'] = calendarlib.day_abbr[dateTime.weekday()]
|
|
38948
|
+
except ValueError:
|
|
38949
|
+
pass
|
|
38950
|
+
elif 'dateTime' in event[attr]:
|
|
38951
|
+
try:
|
|
38952
|
+
dateTime, _ = iso8601.parse_date(event[attr]['dateTime'])
|
|
38953
|
+
event[attr]['dayOfWeek'] = calendarlib.day_abbr[dateTime.weekday()]
|
|
38954
|
+
except (iso8601.ParseError, OverflowError):
|
|
38955
|
+
pass
|
|
38956
|
+
|
|
38941
38957
|
def _createCalendarEvents(user, origCal, function, calIds, count, body, parameters):
|
|
38942
38958
|
if parameters['attendees']:
|
|
38943
38959
|
body['attendees'] = parameters.pop('attendees')
|
|
@@ -39573,6 +39589,8 @@ def _getCalendarInfoEventOptions(calendarEventEntity):
|
|
|
39573
39589
|
myarg = getArgument()
|
|
39574
39590
|
if myarg == 'fields':
|
|
39575
39591
|
_getEventFields(fieldsList)
|
|
39592
|
+
elif myarg == 'showdayofweek':
|
|
39593
|
+
calendarEventEntity['showDayOfWeek'] = True
|
|
39576
39594
|
else:
|
|
39577
39595
|
FJQC.GetFormatJSON(myarg)
|
|
39578
39596
|
_addEventEntitySelectFields(calendarEventEntity, fieldsList)
|
|
@@ -39596,6 +39614,8 @@ def _infoCalendarEvents(origUser, user, origCal, calIds, count, calendarEventEnt
|
|
|
39596
39614
|
throwReasons=GAPI.CALENDAR_THROW_REASONS+[GAPI.NOT_FOUND, GAPI.DELETED, GAPI.FORBIDDEN],
|
|
39597
39615
|
calendarId=calId, eventId=eventId, fields=fields)
|
|
39598
39616
|
if calendarEventEntity['maxinstances'] == -1 or 'recurrence' not in event:
|
|
39617
|
+
if calendarEventEntity['showDayOfWeek']:
|
|
39618
|
+
_getEventDaysOfWeek(event)
|
|
39599
39619
|
_showCalendarEvent(user, calId, Ent.EVENT, event, j, jcount, FJQC)
|
|
39600
39620
|
else:
|
|
39601
39621
|
instances = callGAPIpages(cal.events(), 'instances', 'items',
|
|
@@ -39609,6 +39629,8 @@ def _infoCalendarEvents(origUser, user, origCal, calIds, count, calendarEventEnt
|
|
|
39609
39629
|
l = 0
|
|
39610
39630
|
for instance in instances:
|
|
39611
39631
|
l += 1
|
|
39632
|
+
if calendarEventEntity['showDayOfWeek']:
|
|
39633
|
+
_getEventDaysOfWeek(instance)
|
|
39612
39634
|
_showCalendarEvent(user, calId, Ent.INSTANCE, instance, l, lcount, FJQC)
|
|
39613
39635
|
Ind.Decrement()
|
|
39614
39636
|
except (GAPI.notFound, GAPI.deleted) as e:
|
|
@@ -39662,22 +39684,6 @@ def _getCalendarPrintShowEventOptions(calendarEventEntity, entityType):
|
|
|
39662
39684
|
_addEventEntitySelectFields(calendarEventEntity, fieldsList)
|
|
39663
39685
|
return (csvPF, FJQC, fieldsList)
|
|
39664
39686
|
|
|
39665
|
-
def _getEventDaysOfWeek(event):
|
|
39666
|
-
for attr in ['start', 'end']:
|
|
39667
|
-
if attr in event:
|
|
39668
|
-
if 'date' in event[attr]:
|
|
39669
|
-
try:
|
|
39670
|
-
dateTime = datetime.datetime.strptime(event[attr]['date'], YYYYMMDD_FORMAT)
|
|
39671
|
-
event[attr]['dayOfWeek'] = calendarlib.day_abbr[dateTime.weekday()]
|
|
39672
|
-
except ValueError:
|
|
39673
|
-
pass
|
|
39674
|
-
elif 'dateTime' in event[attr]:
|
|
39675
|
-
try:
|
|
39676
|
-
dateTime, _ = iso8601.parse_date(event[attr]['dateTime'])
|
|
39677
|
-
event[attr]['dayOfWeek'] = calendarlib.day_abbr[dateTime.weekday()]
|
|
39678
|
-
except (iso8601.ParseError, OverflowError):
|
|
39679
|
-
pass
|
|
39680
|
-
|
|
39681
39687
|
# gam calendars <CalendarEntity> print events <EventEntity> <EventDisplayProperties>*
|
|
39682
39688
|
# [fields <EventFieldNameList>] [showdayofweek]
|
|
39683
39689
|
# [countsonly] [formatjson [quotechar <Character>]] [todrive <ToDriveAttribute>*]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
gam/__init__.py,sha256=
|
|
1
|
+
gam/__init__.py,sha256=P4SAx5yFUhgKAllhFMxWa0Xoton4VFJNHAB16tgDtr4,3481112
|
|
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
|
|
@@ -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.7.dist-info/METADATA,sha256=Yl5wspcYfIJOZpddb6XJhB8sGfBmrM_0_Efn5gtba3E,2888
|
|
69
|
+
gam7-7.5.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
70
|
+
gam7-7.5.7.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
|
|
71
|
+
gam7-7.5.7.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
72
|
+
gam7-7.5.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|