#NEWLINE# def home( request ) : #NEWLINE# #INDENT# plugins = [ ] #NEWLINE# working = True #NEWLINE# for ( plugin_class , plugin ) in plugin_dir . _registry . items ( ) : #NEWLINE# #INDENT# plugin = plugin_class ( ) #NEWLINE# if ( not plugin . status ) : #NEWLINE# #INDENT# working = False #NEWLINE# #UNINDENT# plugins . append ( plugin_class ) #NEWLINE# #UNINDENT# plugins . sort ( key = ( lambda x : x . identifier ( ) ) ) #NEWLINE# if working : #NEWLINE# #INDENT# return HttpResponse ( loader . render_to_string ( 'health_check/dashboard.html' , { #NEWLINE# #INDENT# 'plugins' : plugins , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return HttpResponseServerError ( loader . render_to_string ( 'health_check/dashboard.html' , { #NEWLINE# #INDENT# 'plugins' : plugins , #NEWLINE# #UNINDENT# } ) )