#NEWLINE# def _get_current_user( ) : #NEWLINE# #INDENT# session = web . cookies ( session = '' ) . session #NEWLINE# try : #NEWLINE# #INDENT# ( email , login_time , digest ) = session . split ( ',' ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if check_salted_hash ( ( ( digest + ',' ) + login_time ) , digest ) : #NEWLINE# #INDENT# return User . find ( email = email )