#NEWLINE# def import_event( self , event_data ) : #NEWLINE# #INDENT# uid = event_data [ 'UID' ] #NEWLINE# title = description [ 'SUMMARY' ] #NEWLINE# description = event_data [ 'DESCRIPTION' ] #NEWLINE# ( location , _ ) = EventLocation . objects . get_or_create ( calendar = self . calendar , name = event_data [ 'LOCATION' ] ) #NEWLINE# defaults = { #NEWLINE# #INDENT# 'title' : title , #NEWLINE# 'description' : description , #NEWLINE# 'description_markup_type' : 'html' , #NEWLINE# 'venue' : location , #NEWLINE# 'calendar' : self . calendar , #NEWLINE# #UNINDENT# } #NEWLINE# ( event , _ ) = self . create_or_update_model ( Event , uid = uid , defaults = defaults ) #NEWLINE# self . import_occurrence ( event , event_data )