def update_node_links(designated_node, target_nodes, description):
 if (len(target_nodes) == 0):
  logger.info('No target nodes specified - no node links will be added!')
 else:
  logger.info('Repopulating {} with latest {} nodes.'.format(designated_node._id, description))
 user = designated_node.creator
 auth = Auth(user)
 for pointer in designated_node.nodes_pointer:
  designated_node.rm_pointer(pointer, auth)
 for node in target_nodes:
  designated_node.add_pointer(node, auth, save=True)
  logger.info('Added node link {} to {}'.format(node, designated_node))

def update_node_links ( designated_node , target_nodes , description ) : if ( len ( target_nodes ) == 0 ) : logger . info ( 'No target nodes specified - no node links will be added!' ) else : logger . info ( 'Repopulating {} with latest {} nodes.' . format ( designated_node . _id , description ) ) user = designated_node . creator auth = Auth ( user ) for pointer in designated_node . nodes_pointer : designated_node . rm_pointer ( pointer , auth ) for node in target_nodes : designated_node . add_pointer ( node , auth , save = True ) logger . info ( 'Added node link {} to {}' . format ( node , designated_node ) )
takes designated node .