#NEWLINE# def save( self ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'name' : 'Some event' , #NEWLINE# 'location-name' : 'Some location' , #NEWLINE# 'location-addresses-0-street' : 'Some address' , #NEWLINE# #UNINDENT# } #NEWLINE# event = self . Event ( ) #NEWLINE# self . session . add ( event ) #NEWLINE# form = self . EventForm ( MultiDict ( event ) ) #NEWLINE# form . validate ( ) #NEWLINE# form . populate_obj ( event ) #NEWLINE# self . session . commit ( )