@must_have_permission(WRITE)
@must_not_be_registration
def remove_pointer(auth, node, **kwargs):
 pointer_id = request.json.get('pointerId')
 if (pointer_id is None):
  raise HTTPError(http.BAD_REQUEST)
 pointer = Pointer.load(pointer_id)
 if (pointer is None):
  raise HTTPError(http.BAD_REQUEST)
 try:
  node.rm_pointer(pointer, auth=auth)
 except ValueError:
  raise HTTPError(http.BAD_REQUEST)
 node.save()

@ must_have_permission ( WRITE ) @ must_not_be_registration def remove_pointer ( auth , node , ** kwargs ) : pointer_id = request . json . get ( 'pointerId' ) if ( pointer_id is None ) : raise HTTPError ( http . BAD_REQUEST ) pointer = Pointer . load ( pointer_id ) if ( pointer is None ) : raise HTTPError ( http . BAD_REQUEST ) try : node . rm_pointer ( pointer , auth = auth ) except ValueError : raise HTTPError ( http . BAD_REQUEST ) node . save ( )
remove a pointer from a node .