#NEWLINE# def after_fork( self , node , fork , user , save = True ) : #NEWLINE# #INDENT# 'After forking, copy user settings if the user is the one who authorized\n        the addon.\n\n        :return: A tuple of the form (cloned_settings, message)\n        ' #NEWLINE# ( clone , _ ) = super ( DropboxNodeSettings , self ) . after_fork ( node = node , fork = fork , user = user , save = False ) #NEWLINE# if ( self . user_settings and ( self . user_settings . owner == user ) ) : #NEWLINE# #INDENT# clone . user_settings = self . user_settings #NEWLINE# message = 'Dropbox authorization copied to forked {cat}.' . format ( cat = markupsafe . escape ( fork . project_or_component ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# message = 'Dropbox authorization not copied to forked {cat}. You may authorize this fork on the <u><a href="{url}">Settings</a></u> page.' . format ( url = fork . web_url_for ( 'node_setting' ) , cat = markupsafe . escape ( fork . project_or_component ) ) #NEWLINE# #UNINDENT# if save : #NEWLINE# #INDENT# clone . save ( ) #NEWLINE# #UNINDENT# return ( clone , user )