def get_catalogs(portal):
    """Returns the catalogs from the site
    """
    res = []
    for object in portal.objectValues():
        if ICatalogTool.providedBy(object):
            res.append(object)
        elif IZCatalog.providedBy(object):
            res.append(object)
    res.sort()
    return res
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
Returns the catalogs from the site