#NEWLINE# def _get_config_callback( commands_to_run ) : #NEWLINE# #INDENT# config_callback = None #NEWLINE# if ( len ( commands_to_run ) != 1 ) : #NEWLINE# #INDENT# raise Exception ( 'Multiple commands are not supported' ) #NEWLINE# #UNINDENT# c = commands_to_run [ 0 ] [ 0 ] #NEWLINE# ( module , command ) = c . split ( '.' ) #NEWLINE# module_dict = state . commands [ module ] #NEWLINE# command_callable = module_dict [ command ] #NEWLINE# try : #NEWLINE# #INDENT# config_callback = command_callable . pa_config_callback #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# return config_callback