10000 Merge pull request #38 from Yenthe666/patch-4 · urshala/google-cloud-python@fb6952b · GitHub
[go: up one dir, main page]

Skip to content

Commit fb6952b

Browse files
authored
Merge pull request googleapis#38 from Yenthe666/patch-4
Add event settings for timezones and type of event
2 parents 744e944 + e498c16 commit fb6952b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

O365/event.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from O365.contact import Contact
2+
from O365.group import Group
23
import logging
34
import json
45
import requests
@@ -29,6 +30,8 @@ class Event( object ):
2930
setStart -- sets the starting time of the event. (struct_time)
3031
setEnd -- sets the starting time of the event. (struct_time)
3132
setAttendees -- sets the attendee list.
33+
setStartTimeZone -- sets the timezone for the start of the event item.
34+
setEndTimeZone -- sets the timezone for the end of the event item.
3235
3336
Variables:
3437
time_string -- Formated time string for translation to and from json.
@@ -267,7 +270,7 @@ def setEnd(self,val):
267270
#your time string!
268271
self.json['End'] = val
269272

270-
def setAttendee(self,val):
273+
def setAttendees(self,val):
271274
'''
272275
set the attendee list.
273276
@@ -298,6 +301,14 @@ def setAttendee(self,val):
298301
else:
299302
return False
300303
return True
304+
305+
def setStartTimeZone(self,val):
306+
'''sets event start timezone'''
307+
self.json['StartTimeZone'] = val
308+
309+
def setEndTimeZone(self,val):
310+
'''sets event end timezone'''
311+
self.json['EndTimeZone'] = val
301312

302313
def addAttendee(self,address,name=None):
303314
'''

0 commit comments

Comments
 (0)
0