#NEWLINE# def auth_via_browser( self , perms = 'read' ) : #NEWLINE# #INDENT# 'Opens the webbrowser to authenticate the given request\n        request_token, sets the verifier.\n\n        Use this method in stand-alone apps. In webapps, use auth_url(...)\n        instead, and redirect the user to the returned URL.\n\n        Updates the given request_token by setting the OAuth verifier.\n        ' #NEWLINE# self . _start_http_server ( ) #NEWLINE# url = self . auth_url ( url ) #NEWLINE# if ( not webbrowser . open_new_tab ( url ) ) : #NEWLINE# #INDENT# raise exceptions . FlickrError ( ( 'Unable to open a browser to visit %s' % url ) ) #NEWLINE# #UNINDENT# self . verifier = self . auth_http_server . wait_for_oauth_verifier ( ) #NEWLINE# self . _stop_http_server ( )