#NEWLINE# def showDecidePage( request , openid_request ) : #NEWLINE# #INDENT# '\n    Render a page to the user so a trust decision can be made.\n\n    @type openid_request: openid.server.server.CheckIDRequest\n    ' #NEWLINE# trust_root = request . trust_root #NEWLINE# return_to = openid_request . return_to #NEWLINE# try : #NEWLINE# #INDENT# trust_root_valid = ( ( verifyReturnTo ( trust_root , return_to ) and 'Valid' ) or 'Invalid' ) #NEWLINE# #UNINDENT# except DiscoveryFailure as err : #NEWLINE# #INDENT# trust_root_valid = 'DISCOVERY_FAILED' #NEWLINE# #UNINDENT# except HTTPFetchingError as err : #NEWLINE# #INDENT# trust_root_valid = 'Unreachable' #NEWLINE# #UNINDENT# pape_request = pape . Request . fromOpenIDRequest ( openid_request ) #NEWLINE# return render_to_response ( 'server/trust.html' , { #NEWLINE# #INDENT# 'trust_root' : trust_root , #NEWLINE# 'trust_handler_url' : getViewURL ( request , processTrustResult ) , #NEWLINE# 'trust_root_valid' : trust_root_valid , #NEWLINE# 'pape_request' : pape_request , #NEWLINE# #UNINDENT# } , context_instance = RequestContext ( request ) )