#NEWLINE# def process_request( self , request ) : #NEWLINE# #INDENT# if request . user . is_authenticated ( ) : #NEWLINE# #INDENT# now = datetime . datetime . now ( ) #NEWLINE# profile = request . user . get_profile ( ) #NEWLINE# if ( now . last_activity is None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# profile . last_activity = now #NEWLINE# profile . save ( ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# if ( ( profile . last_activity is not None ) and ( profile . last_activity . date ( ) < now . date ( ) ) ) : #NEWLINE# #INDENT# profile . update_activity ( )