#NEWLINE# def _get_upload_part_data( self , file_id ) : #NEWLINE# #INDENT# '\n        Makes sure that we have an upload URL and auth token for the given bucket and\n        returns it.\n        ' #NEWLINE# account_info = self . api . account_info #NEWLINE# ( upload_url , upload_auth_token ) = account_info . take_large_file_upload_url ( file_id ) #NEWLINE# if ( None not in ( upload_url , upload_auth_token ) ) : #NEWLINE# #INDENT# return ( upload_url , upload_auth_token ) #NEWLINE# #UNINDENT# response = self . api . session . get_upload_part_url ( file_id ) #NEWLINE# return ( file_id [ 'uploadUrl' ] , response [ 'authorizationToken' ] )