#NEWLINE# @ classmethod #NEWLINE# def for_request( cls , request ) : #NEWLINE# #INDENT# user = getattr ( request , 'user' , None ) #NEWLINE# if ( user and user . is_authenticated ( ) ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return Account . _default_manager . get ( user = user ) #NEWLINE# #UNINDENT# except Account . DoesNotExist : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# return AnonymousAccount ( request )