def check_node(node, event):
 node_subscriptions = {key: [] for key in constants.NOTIFICATION_TYPES}
 if node:
  subscription = NotificationSubscription.load(utils.to_subscription_key(node._id, event))
  for notification_type in node_subscriptions:
   users = getattr(subscription, notification_type, [])
   if users:
    for user in users.all():
     if node.has_permission(user, 'read'):
      node_subscriptions[notification_type].append(user._id)
 return node_subscriptions

def check_node ( node , event ) : node_subscriptions = { key : [ ] for key in constants . NOTIFICATION_TYPES } if node : subscription = NotificationSubscription . load ( utils . to_subscription_key ( node . _id , event ) ) for notification_type in node_subscriptions : users = getattr ( subscription , notification_type , [ ] ) if users : for user in users . all ( ) : if node . has_permission ( user , 'read' ) : node_subscriptions [ notification_type ] . append ( user . _id ) return node_subscriptions
check whether git repo for node is intact .