@must_have_permission(WRITE)
@must_not_be_registration
def add_pointers(auth, node, **kwargs):
 node_ids = request.json.get('nodeIds')
 if (not node_ids):
  raise HTTPError(http.BAD_REQUEST)
 nodes = [Node.load(node_id) for node_id in node_ids]
 try:
  _add_pointers(node, nodes, auth)
 except ValueError:
  raise HTTPError(http.BAD_REQUEST)
 return {}

@ must_have_permission ( WRITE ) @ must_not_be_registration def add_pointers ( auth , node , ** kwargs ) : node_ids = request . json . get ( 'nodeIds' ) if ( not node_ids ) : raise HTTPError ( http . BAD_REQUEST ) nodes = [ Node . load ( node_id ) for node_id in node_ids ] try : _add_pointers ( node , nodes , auth ) except ValueError : raise HTTPError ( http . BAD_REQUEST ) return { }
add pointers to a node .