mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-04 04:41:35 +00:00
Add updateevent documentation, fix bug (#1142)
* Add updateevent documentation * Fix calendar bug * updateevent doesn't use id|eventid
This commit is contained in:
@@ -1005,7 +1005,6 @@ The following attributes are equivalent:
|
|||||||
guestscantinviteothers|
|
guestscantinviteothers|
|
||||||
guestscantseeothers|
|
guestscantseeothers|
|
||||||
hangoutsmeet|
|
hangoutsmeet|
|
||||||
(id <String>)|
|
|
||||||
(location <String>)|
|
(location <String>)|
|
||||||
(noreminders| (reminder <Number> email|popup|sms))|
|
(noreminders| (reminder <Number> email|popup|sms))|
|
||||||
(optionalattendee <EmailAddress>)|
|
(optionalattendee <EmailAddress>)|
|
||||||
@@ -1019,6 +1018,11 @@ The following attributes are equivalent:
|
|||||||
(timezone <Timezone>)|
|
(timezone <Timezone>)|
|
||||||
(visibility default|public|prvate)
|
(visibility default|public|prvate)
|
||||||
|
|
||||||
|
<EventUpdateAttributes> ::=
|
||||||
|
<EventAttributes>|
|
||||||
|
(removeattendee <EmailAddress>)|
|
||||||
|
(replacedescription <RegularExpression> <String>)
|
||||||
|
|
||||||
<EventSelectProperty:> ::=
|
<EventSelectProperty:> ::=
|
||||||
(after <Time>)|
|
(after <Time>)|
|
||||||
(before <Time>)|
|
(before <Time>)|
|
||||||
@@ -1030,9 +1034,10 @@ The following attributes are equivalent:
|
|||||||
<EventDisplayProperty> ::=
|
<EventDisplayProperty> ::=
|
||||||
(timezone <TimeZone>)
|
(timezone <TimeZone>)
|
||||||
|
|
||||||
gam calendar <CalendarItem> addevent <EventAttributes>+ [<EventNotificationAttribute>]
|
gam calendar <CalendarItem> addevent [id <String>] <EventAttributes>+ [<EventNotificationAttribute>]
|
||||||
gam calendar <CalendarItem> deleteevent id|eventid <EventID> [doit] [<EventNotificationAttribute>]
|
gam calendar <CalendarItem> deleteevent id|eventid <EventID> [doit] [<EventNotificationAttribute>]
|
||||||
gam calendar <CalendarItem> moveevent id|eventid <EventID> [doit] [<EventNotificationAttribute>]
|
gam calendar <CalendarItem> moveevent id|eventid <EventID> [doit] [<EventNotificationAttribute>]
|
||||||
|
gam calendar <CalendarItem> updateevent <EventID> <EventUpdateAttributes>+ [<EventNotificationAttribute>]
|
||||||
gam calendar <CalendarItem> wipe
|
gam calendar <CalendarItem> wipe
|
||||||
gam calendar <CalendarItem> printevents <EventSelectProperty>* <EventDisplayProperty>* [todrive]
|
gam calendar <CalendarItem> printevents <EventSelectProperty>* <EventDisplayProperty>* [todrive]
|
||||||
|
|
||||||
|
|||||||
@@ -370,6 +370,7 @@ def getEventAttributes(i, calendarId, cal, body, action):
|
|||||||
elif myarg == 'replacedescription' and action == 'update':
|
elif myarg == 'replacedescription' and action == 'update':
|
||||||
search = sys.argv[i+1]
|
search = sys.argv[i+1]
|
||||||
replace = sys.argv[i+2]
|
replace = sys.argv[i+2]
|
||||||
|
if 'description' in body:
|
||||||
body['description'] = re.sub(search, replace, body['description'])
|
body['description'] = re.sub(search, replace, body['description'])
|
||||||
i += 3
|
i += 3
|
||||||
elif myarg == 'start':
|
elif myarg == 'start':
|
||||||
|
|||||||
Reference in New Issue
Block a user