#NEWLINE# def _populate( self ) : #NEWLINE# #INDENT# '\n        Fill in all the cache information. This method is threadsafe, in the\n        sense that every caller will see the same state upon return, and if the\n        cache is already initialised, it does no work.\n        ' #NEWLINE# if self . loaded : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# self . write_lock . acquire ( ) #NEWLINE# try : #NEWLINE# #INDENT# if self . loaded : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# for app_name in settings . INSTALLED_APPS : #NEWLINE# #INDENT# if ( app_name in self . handled ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# self . load_app ( app_name , True ) #NEWLINE# #UNINDENT# if ( not self . nesting_level ) : #NEWLINE# #INDENT# for app_name in self . postponed : #NEWLINE# #INDENT# self . load_app ( app_name ) #NEWLINE# #UNINDENT# self . loaded = True #NEWLINE# #UNINDENT# #UNINDENT# finally : #NEWLINE# #INDENT# self . write_lock . release ( )