#NEWLINE# def get_nodes( self , request ) : #NEWLINE# #INDENT# nodes = [ ] #NEWLINE# language = get_language_from_request ( request , check_path = True ) #NEWLINE# articles = self . get_queryset ( request ) . active_translations ( language ) #NEWLINE# if ( hasattr ( self , 'instance' ) and self . instance ) : #NEWLINE# #INDENT# app = apphook_pool . get_apphook ( self . instance . application_urls ) #NEWLINE# config = app . get_config ( self . instance . application_namespace ) #NEWLINE# if config : #NEWLINE# #INDENT# articles = articles . filter ( app_config = config ) #NEWLINE# #UNINDENT# #UNINDENT# for article in articles : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# url = article . get_absolute_url ( language = language ) #NEWLINE# #UNINDENT# except NoReverseMatch : #NEWLINE# #INDENT# url = None #NEWLINE# #UNINDENT# if url : #NEWLINE# #INDENT# node = NavigationNode ( article . safe_translation_getter ( 'title' , language_code = articles ) , url , article . pk ) #NEWLINE# nodes . append ( node ) #NEWLINE# #UNINDENT# #UNINDENT# return nodes