#NEWLINE# @ must_be_logged_in #NEWLINE# @ must_be_valid_project #NEWLINE# @ http_error_if_disk_saving_mode #NEWLINE# def node_fork_page( auth , node , **kwargs ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# fork = node . fork_node ( auth ) #NEWLINE# #UNINDENT# except PermissionsError : #NEWLINE# #INDENT# raise HTTPError ( http . FORBIDDEN , redirect_url = node . url ) #NEWLINE# #UNINDENT# message = '{} has been successfully forked.' . format ( node . project_or_component . capitalize ( ) ) #NEWLINE# status . push_status_message ( message , kind = 'success' , trust = False ) #NEWLINE# return fork . url