#NEWLINE# def get_state_from_user( self , folder ) : #NEWLINE# #INDENT# options = self . get_transition_dict ( folder ) #NEWLINE# response = None #NEWLINE# while ( response is None ) : #NEWLINE# #INDENT# for ( option_id , option_data ) in options . items ( ) : #NEWLINE# #INDENT# print ( ( '%s: %s (%s)' % ( option_id , option_data [ 'name' ] , option_data . get ( 'to' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) . get ( 'description' , '' ) ) ) ) #NEWLINE# #UNINDENT# print ( '' ) #NEWLINE# response = self . get_state_from_string ( folder , input ( 'Please select a state from the above options: ' ) ) #NEWLINE# #UNINDENT# return response