def getSequenceIndexPlusOneFromText(fileText):
 craftSequence = getReadCraftSequence()
 for craftSequenceIndex in xrange((len(craftSequence) - 1), (-1), (-1)):
  procedure = craftSequence[craftSequenceIndex]
  if gcodec.isProcedureDone(fileText, procedure):
   return (craftSequenceIndex + 1)
 return 0

def getSequenceIndexPlusOneFromText ( fileText ) : craftSequence = getReadCraftSequence ( ) for craftSequenceIndex in xrange ( ( len ( craftSequence ) - 1 ) , ( - 1 ) , ( - 1 ) ) : procedure = craftSequence [ craftSequenceIndex ] if gcodec . isProcedureDone ( fileText , procedure ) : return ( craftSequenceIndex + 1 ) return 0
get the profile sequence index of the file plus one .