#NEWLINE# def _load_conf( self , instance ) : #NEWLINE# #INDENT# params = [ ] #NEWLINE# for ( option , required , default , expected_type ) in self . OPTIONS : #NEWLINE# #INDENT# value = instance . get ( option ) #NEWLINE# if ( required and ( ( ( not value ) or type ( value ) ) != expected_type ) ) : #NEWLINE# #INDENT# raise Exception ( 'Please specify a valid {0}' . format ( option ) ) #NEWLINE# #UNINDENT# if ( ( value is None ) or ( type ( value ) != expected_type ) ) : #NEWLINE# #INDENT# self . log . debug ( 'Bad or missing value for {0} parameter. Using default' . format ( option ) ) #NEWLINE# value = default #NEWLINE# #UNINDENT# params . append ( value ) #NEWLINE# #UNINDENT# return self . Config . _make ( params )