#NEWLINE# def get_site_choices( lang = None ) : #NEWLINE# #INDENT# from django.core.cache import cache #NEWLINE# lang = ( lang or i18n . get_current_language ( ) ) #NEWLINE# site_choices = cache . get ( _site_cache_key ( lang ) ) #NEWLINE# if ( site_choices is None ) : #NEWLINE# #INDENT# ( site_choices , page_choices ) = update_site_and_page_choices ( lang ) #NEWLINE# #UNINDENT# return site_choices