#NEWLINE# def add_offset_type_cv( session , unit_id ) : #NEWLINE# #INDENT# offset = OffsetType ( ) #NEWLINE# offset . unit_id = unit_id #NEWLINE# offset . description = 'This is a test' #NEWLINE# session . add ( offset ) #NEWLINE# session . commit ( ) #NEWLINE# return offset