#NEWLINE# def get_template_sources( self , template_name ) : #NEWLINE# #INDENT# default_theme = get_default_theme ( ) #NEWLINE# theme = getattr ( _local , 'theme' , default_theme ) #NEWLINE# this_theme = find_theme ( theme ) #NEWLINE# if ( not this_theme ) : #NEWLINE# #INDENT# this_theme = find_theme ( get_default_theme ( ) ) #NEWLINE# if ( not this_theme ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# try : #NEWLINE# #INDENT# if ( not template_name . startswith ( '/' ) ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# ( yield safe_join ( 'openstack_dashboard' , this_theme [ 2 ] , 'templates' , template_name ) ) #NEWLINE# #UNINDENT# except SuspiciousFileOperation : #NEWLINE# #INDENT# ( yield os . path . join ( this_theme [ 2 ] , 'templates' , template_name ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# except UnicodeDecodeError : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# pass