def get_all_node_subscriptions(user, node, user_subscriptions=None):
 if (not user_subscriptions):
  user_subscriptions = get_all_user_subscriptions(user)
 for subscription in user_subscriptions:
  if (subscription and (subscription.owner == node)):
   (yield subscription)

def get_all_node_subscriptions ( user , node , user_subscriptions = None ) : if ( not user_subscriptions ) : user_subscriptions = get_all_user_subscriptions ( user ) for subscription in user_subscriptions : if ( subscription and ( subscription . owner == node ) ) : ( yield subscription )
get all subscription objects for a node that the user is subscribed to .