#NEWLINE# def get_manager( self , options ) : #NEWLINE# #INDENT# _get_instances = _get_instances . get_instances #NEWLINE# class _Manager ( BaseManager ) : #NEWLINE# #INDENT# def get_instances( self , path , site = None , language = None , context = None ) : #NEWLINE# #INDENT# queryset = self . for_site_and_language ( site , language ) #NEWLINE# return _get_instances ( queryset , path , context ) #NEWLINE# #UNINDENT# if ( not options . use_sites ) : #NEWLINE# #INDENT# def for_site_and_language( self , site = None , language = None ) : #NEWLINE# #INDENT# queryset = self . get_query_set ( ) #NEWLINE# if language : #NEWLINE# #INDENT# queryset = queryset . filter ( _language = language ) #NEWLINE# #UNINDENT# return queryset #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return _Manager