#NEWLINE# def get_by_ids( self , project_id , user_id ) : #NEWLINE# #INDENT# '\n        Finds and returns the collaborator state based on the project and user\n        ids.\n        ' #NEWLINE# for obj in project_id . state [ self . state_name ] : #NEWLINE# #INDENT# if ( ( obj [ 'project_id' ] == project_id ) and ( obj [ 'user_id' ] == user_id ) ) : #NEWLINE# #INDENT# return obj #NEWLINE# #UNINDENT# #UNINDENT# return None