Skip to content

Commit

Permalink
Merge pull request googleapis#61 from vincentadriaensen/master
Browse files Browse the repository at this point in the history
yea, that looks good. Thanks for the contribution.
  • Loading branch information
Narcolapser authored Oct 4, 2017
2 parents 619280f + 2b1ee0e commit 23eff38
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions O365/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,17 @@ def setSubject(self,val):
'''sets event subject line.'''
self.json['Subject'] = val

def setBody(self,val):
'''sets event body content.'''
def setBody(self,val,contentType='Text'):
'''
sets event body content:
Examples for ContentType could be 'Text' or 'HTML'
'''
cont = False

while not cont:
try:
self.json['Body']['Content'] = val
self.json['Body']['ContentType'] = 'Text'
self.json['Body']['ContentType'] = contentType
cont = True
except:
self.json['Body'] = {}
Expand Down

0 comments on commit 23eff38

Please sign in to comment.