#NEWLINE# @ must_be_valid_project #NEWLINE# @ must_have_permission ( WRITE ) #NEWLINE# @ must_not_be_registration #NEWLINE# def remove_pointer_from_folder( auth , node , pointer_id , **kwargs ) : #NEWLINE# #INDENT# 'Remove a pointer from a node, raising a 400 if the pointer is not\n    in `node.nodes`.\n\n    ' #NEWLINE# if ( pointer_id is None ) : #NEWLINE# #INDENT# raise HTTPError ( http . BAD_REQUEST ) #NEWLINE# #UNINDENT# pointer_id = node . pointing_at ( pointer_id ) #NEWLINE# pointer = Pointer . load ( pointer_id ) #NEWLINE# if ( pointer is None ) : #NEWLINE# #INDENT# raise HTTPError ( http . BAD_REQUEST ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# node . rm_pointer ( pointer , auth = auth ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise HTTPError ( http . BAD_REQUEST ) #NEWLINE# #UNINDENT# node . save ( )