-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated
<CalendarAttribute>
to allow specifying a list of email not…
…ification event types.
- Loading branch information
Showing
3 changed files
with
42 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
6.00.04 | ||
|
||
Updated `<CalendarAttribute>` to allow specifying a list of email notification event types. | ||
|
||
Previously, you had to specify each email notification event type individually (this still works). | ||
``` | ||
<CalendarEmailNotificatonEventType> ::= | ||
eventcreation|eventchange|eventcancellation|eventresponse|agenda | ||
<CalendarEmailNotificatonEventTypeList> ::= | ||
<CalendarEmailNotificatonEventType>(,<CalendarEmailNotificatonEventType>)* | ||
|
||
<CalendarAttribute> ::= | ||
... | ||
(notification clear|(email <CalendarEmailNotificatonEventTypeList>))| | ||
|
||
gam user [email protected] update calendar primary notification email eventchange,eventcancellation | ||
``` | ||
|
||
6.00.03 | ||
|
||
Fixed bug in `gam calendar update event` introduced in 5.34.02 where updating an event's start or end time appeared to work | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
""" | ||
|
||
__author__ = 'Ross Scroggs <[email protected]>' | ||
__version__ = '6.00.03' | ||
__version__ = '6.00.04' | ||
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)' | ||
|
||
import base64 | ||
|
@@ -35779,8 +35779,14 @@ def _getCalendarAttributes(body): | |
body.setdefault('notificationSettings', {'notifications': []}) | ||
method = getChoice(CALENDAR_NOTIFICATION_METHODS+Cmd.CLEAR_NONE_ARGUMENT) | ||
if method not in Cmd.CLEAR_NONE_ARGUMENT: | ||
body['notificationSettings']['notifications'].append({'method': method, | ||
'type': getChoice(CALENDAR_NOTIFICATION_TYPES_MAP, mapChoice=True)}) | ||
for ntype in _getFieldsList(): | ||
if ntype in CALENDAR_NOTIFICATION_TYPES_MAP: | ||
body['notificationSettings']['notifications'].append({'method': method, | ||
'type': CALENDAR_NOTIFICATION_TYPES_MAP[ntype]}) | ||
else: | ||
invalidChoiceExit(ntype, CALENDAR_NOTIFICATION_TYPES_MAP, True) | ||
else: | ||
body['notificationSettings']['notifications'] = [] | ||
else: | ||
unknownArgumentExit() | ||
return colorRgbFormat | ||
|