#NEWLINE# @ signals . contributor_removed . connect #NEWLINE# def remove_contributor_from_subscriptions( contributor , node ) : #NEWLINE# #INDENT# " Remove contributor from node subscriptions unless the user is an\n        admin on any of node's parent projects.\n    " #NEWLINE# if ( contributor . _id not in node . admin_contributor_ids ) : #NEWLINE# #INDENT# node_subscriptions = get_all_node_subscriptions ( contributor , node ) #NEWLINE# for subscription in node_subscriptions : #NEWLINE# #INDENT# subscription . remove_user_from_subscription ( contributor )