#NEWLINE# def get_step_index( self , step = None ) : #NEWLINE# #INDENT# '\n        Returns the index for the given `step` name. If no step is given,\n        the current step will be used to get the index.\n        ' #NEWLINE# if ( step is None ) : #NEWLINE# #INDENT# step = self . steps . current #NEWLINE# #UNINDENT# return self . get_form_list ( ) . keyOrder . index ( self )