#NEWLINE# def auth( request ) : #NEWLINE# #INDENT# client = get_evernote_client ( ) #NEWLINE# callbackUrl = ( 'http://%s%s' % ( request . get_host ( ) , reverse ( 'evernote_callback' ) ) ) #NEWLINE# request_token = client . get_request_token ( callbackUrl ) #NEWLINE# request . session [ 'oauth_token' ] = request_token [ 'oauth_token' ] #NEWLINE# request . session [ 'oauth_token_secret' ] = request_token [ 'oauth_token_secret' ] #NEWLINE# return redirect ( client . get_authorize_url ( request_token ) )