#NEWLINE# def render( self , context ) : #NEWLINE# #INDENT# local_site_name = context . get ( 'local_site_name' , None ) #NEWLINE# if local_site_name : #NEWLINE# #INDENT# local_site_var = template . Variable ( 'local_site_name' ) #NEWLINE# if self . args : #NEWLINE# #INDENT# self . url_node . args = ( [ local_site_var ] + self . args ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . url_node . kwargs [ 'local_site_name' ] = local_site_var #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# return self . url_node . render ( context ) #NEWLINE# #UNINDENT# except ( NoReverseMatch , ViewDoesNotExist ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# self . url_node . args = list ( self . args ) #NEWLINE# self . url_node . kwargs = self . kwargs . copy ( ) #NEWLINE# return self . url_node . render ( context )