@must_be_valid_project
@must_have_permission(WRITE)
@must_not_be_registration
def remove_pointer_from_folder(auth, node, pointer_id, **kwargs):
 if (pointer_id is None):
  raise HTTPError(http.BAD_REQUEST)
 pointer_id = node.pointing_at(pointer_id)
 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_be_valid_project @ must_have_permission ( WRITE ) @ must_not_be_registration def remove_pointer_from_folder ( auth , node , pointer_id , ** kwargs ) : if ( pointer_id is None ) : raise HTTPError ( http . BAD_REQUEST ) pointer_id = node . pointing_at ( pointer_id ) 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 .