code: def add_worksheet_progress_percentage(portal):
      
      add_metadata(portal, CATALOG_WORKSHEET_LISTING, "getProgressPercentage")
      logger.info("Reindexing Worksheets ...")
      query = dict(portal_type="Worksheet")
      brains = api.search(query, CATALOG_WORKSHEET_LISTING)
      total = len(brains)
      for num, brain in enumerate(brains):
          if num % 100 == 0:
              logger.info("Reindexing open Worksheets: {}/{}"
                          .format(num, total))
          worksheet = api.get_object(brain)
          worksheet.reindexObject()
docs: Adds getProgressPercentage metadata to worksheets catalog