@must_be_valid_project
@must_have_permission(ADMIN)
def node_registration_retraction_get(auth, node, **kwargs):
 if (not node.is_registration):
  raise HTTPError(http.BAD_REQUEST, data={'message_short': 'Invalid Request', 'message_long': 'Withdrawal of non-registrations is not permitted.'})
 if node.is_pending_retraction:
  raise HTTPError(http.BAD_REQUEST, data={'message_short': 'Invalid Request', 'message_long': 'This registration is already pending withdrawal.'})
 return serialize_node(node, auth, primary=True)

@ must_be_valid_project @ must_have_permission ( ADMIN ) def node_registration_retraction_get ( auth , node , ** kwargs ) : if ( not node . is_registration ) : raise HTTPError ( http . BAD_REQUEST , data = { 'message_short' : 'Invalid Request' , 'message_long' : 'Withdrawal of non-registrations is not permitted.' } ) if node . is_pending_retraction : raise HTTPError ( http . BAD_REQUEST , data = { 'message_short' : 'Invalid Request' , 'message_long' : 'This registration is already pending withdrawal.' } ) return serialize_node ( node , auth , primary = True )
prepares node object for registration retraction page .