#NEWLINE# @ staticmethod #NEWLINE# def coerce( obj , attr , value ) : #NEWLINE# #INDENT# result = IPAddress . coerce ( obj , attr , value ) #NEWLINE# if ( ( result . version != 4 ) and ( result . version != 6 ) ) : #NEWLINE# #INDENT# raise ValueError ( ( _ ( 'Network "%(val)s" is not valid in field %(attr)s' ) % { #NEWLINE# #INDENT# 'val' : value , #NEWLINE# 'attr' : attr , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# #UNINDENT# return result