#NEWLINE# def start_plugin_polling( self ) : #NEWLINE# #INDENT# 'Iterate through each plugin and start the polling process.' #NEWLINE# for plugin in [ plugin_class for key in self . config . application . keys ( ) if ( key not in self . IGNORE_KEYS ) ] : #NEWLINE# #INDENT# LOGGER . info ( 'Enabling plugin: %s' , plugin ) #NEWLINE# plugin_class = None #NEWLINE# if ( plugin in plugins . available ) : #NEWLINE# #INDENT# plugin_class = self . _get_plugin ( plugins . available [ plugin ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( '.' in plugin ) : #NEWLINE# #INDENT# plugin_class = self . _get_plugin ( plugin ) #NEWLINE# #UNINDENT# #UNINDENT# if ( not plugin_class ) : #NEWLINE# #INDENT# LOGGER . error ( 'Enabled plugin %s not available' , plugin ) #NEWLINE# continue #NEWLINE# #UNINDENT# self . poll_plugin ( plugin , plugin_class , self . config . application . get ( plugin ) )