#NEWLINE# def get_external_id_url( self ) : #NEWLINE# #INDENT# url = None #NEWLINE# if ( self . externalId and self . externalId . endswith ( 'W' ) ) : #NEWLINE# #INDENT# url = ( reverse ( 'oozie:list_oozie_workflow' , kwargs = { #NEWLINE# #INDENT# 'job_id' : self . externalId , #NEWLINE# #UNINDENT# } ) or '' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . externalId and re . match ( 'job_.*' , self . externalId ) ) : #NEWLINE# #INDENT# url = ( reverse ( 'jobbrowser.views.single_job' , kwargs = { #NEWLINE# #INDENT# 'job' : self . externalId , #NEWLINE# #UNINDENT# } ) or '' ) #NEWLINE# #UNINDENT# #UNINDENT# return url