#NEWLINE# def set_score_for_objects( self , object_target , object_target_site , object_related , object_related_site , score ) : #NEWLINE# #INDENT# if ( score == 0 ) : #NEWLINE# #INDENT# self . filter_by_couple ( object_target , object_related ) . filter ( object_site = object_target_site . id , related_object_site = object_related_site . id ) . delete ( ) #NEWLINE# return None #NEWLINE# #UNINDENT# ( result , created ) = self . get_or_create_for_objects ( object_target , object_target_site , object_related , object_related_site ) #NEWLINE# result . score = score #NEWLINE# result . save ( ) #NEWLINE# return result