#NEWLINE# def login( self , provider_name ) : #NEWLINE# #INDENT# result = authomatic . login ( Webapp2Adapter ( self ) , provider_name , callback = self . callback ) #NEWLINE# if result : #NEWLINE# #INDENT# if result . user : #NEWLINE# #INDENT# user_response = result . user . update ( ) #NEWLINE# if user_response : #NEWLINE# #INDENT# self . response . write ( '<br /><br />status = {0}<br />' . format ( user_response . status ) ) #NEWLINE# #UNINDENT# self . response . write ( '<br /><br />Hi {0}<br />' . format ( result . user . name ) ) #NEWLINE# self . response . write ( 'your ID is {0}<br />' . format ( result . user . id ) ) #NEWLINE# self . response . write ( 'your email is {0}<br />' . format ( result . user . email ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if result . error : #NEWLINE# #INDENT# self . response . write ( 'ERROR {0}<br />' . format ( result . error . message ) )