#NEWLINE# def contribute( self , data , context ) : #NEWLINE# #INDENT# context = super ( AssociateIP , self ) . contribute ( data , context ) #NEWLINE# ip_id = data . get ( 'ip_id' , None ) #NEWLINE# if ip_choices : #NEWLINE# #INDENT# ip_choices = dict ( self . action . fields [ 'ip_id' ] . choices ) #NEWLINE# context [ 'ip_address' ] = ip_choices . get ( ip_id , None ) #NEWLINE# #UNINDENT# return context