code: def get_catalogs(portal):
      
      res = []
      for object in portal.objectValues():
          if ICatalogTool.providedBy(object):
              res.append(object)
          elif IZCatalog.providedBy(object):
              res.append(object)
      res.sort()
      return res
docs: Returns the catalogs from the site