Skip to content

Commit

Permalink
Merge pull request googleapis#38 from Yenthe666/patch-4
Browse files Browse the repository at this point in the history
Add event settings for timezones and type of event
  • Loading branch information
Narcolapser authored Oct 20, 2016
2 parents 744e944 + e498c16 commit fb6952b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion O365/event.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from O365.contact import Contact
from O365.group import Group
import logging
import json
import requests
Expand Down Expand Up @@ -29,6 +30,8 @@ class Event( object ):
setStart -- sets the starting time of the event. (struct_time)
setEnd -- sets the starting time of the event. (struct_time)
setAttendees -- sets the attendee list.
setStartTimeZone -- sets the timezone for the start of the event item.
setEndTimeZone -- sets the timezone for the end of the event item.
Variables:
time_string -- Formated time string for translation to and from json.
Expand Down Expand Up @@ -267,7 +270,7 @@ def setEnd(self,val):
#your time string!
self.json['End'] = val

def setAttendee(self,val):
def setAttendees(self,val):
'''
set the attendee list.
Expand Down Expand Up @@ -298,6 +301,14 @@ def setAttendee(self,val):
else:
return False
return True

def setStartTimeZone(self,val):
'''sets event start timezone'''
self.json['StartTimeZone'] = val

def setEndTimeZone(self,val):
'''sets event end timezone'''
self.json['EndTimeZone'] = val

def addAttendee(self,address,name=None):
'''
Expand Down

0 comments on commit fb6952b

Please sign in to comment.