#NEWLINE# def get_accepted_cookies( request ) : #NEWLINE# #INDENT# '\n    Returns all accepted cookies.\n    ' #NEWLINE# cookie_dic = get_cookie_dict_from_request ( request ) #NEWLINE# accepted_cookies = [ ] #NEWLINE# for cookie_group in all_cookie_groups ( ) . values ( ) : #NEWLINE# #INDENT# version = cookie_dic . get ( cookie_group . varname , None ) #NEWLINE# if ( ( not version ) or ( version == settings . COOKIE_CONSENT_DECLINE ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# for cookie in cookie_group . cookie_set . all ( ) : #NEWLINE# #INDENT# if ( version >= cookie . get_version ( ) ) : #NEWLINE# #INDENT# accepted_cookies . append ( cookie ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return accepted_cookies