X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/787a108deee8d7b54ce081d4f679c7c7aa25a9a3..bec2191d8ad9607db748a051eb96ed0a79e7e99f:/_zctl/rebuild-catalog.py?ds=sidebyside diff --git a/_zctl/rebuild-catalog.py b/_zctl/rebuild-catalog.py index e9d0395..29a948b 100644 --- a/_zctl/rebuild-catalog.py +++ b/_zctl/rebuild-catalog.py @@ -5,11 +5,6 @@ from zope.site.hooks import setSite from Products.CMFCore.CMFCatalogAware import CMFCatalogAware import transaction -# portal = app.realismc -# setSite(portal) -# ctool = portal.portal_catalog -# -# errorLog = open('/home/zope/checkcontents-errors.log', 'w') count = 0 def checkContents(ob) : @@ -40,7 +35,7 @@ def checkContents(ob) : checkContents(v) -parser = ArgumentParser(description="Deflate blobs backup set.") +parser = ArgumentParser(description="Rebuild entire catalog by walking contents tree.") parser.add_argument('portal_path') parser.add_argument('--error-log', help='Error log file. Default: ~/catalog-rebuild-error.log', default='~/catalog-rebuild-error.log', required=False, dest='errorLogPath')