Commit 03902005 authored by Andreas Jung's avatar Andreas Jung

documentation cleanup, typo

parent e877fd50
......@@ -59,4 +59,16 @@ ZCatalog
'pghandler' which must be a handler instance implementing the
IProgressHandler interface (see ProgressHandler.py). This can be useful
to provide logging during long running operations.
Example to reindex a catalog using zopectl:
> zopectl debug
>
From the zopectl shell:
> from Products.ZCatalog.ProgressHandler import StdoutHandler
> from Products.ZCatalog.ProgressHandler import ZLogHandler
> cat = app.cmfsite.portal_catalog
> cat.reindexIndex('SearchableText', None, pghandler=StdoutHandler())
> cat.refreshCatalog(pghandler=ZLogHandler())
......@@ -38,7 +38,7 @@
</tr>
<tr>
<td align="left" valign="top">
<p class="form-help">Log progress of reindexing every N objects to the Zope logger (set to 0 to disabled logging)
<p class="form-help">Log progress of reindexing every N objects to the Zope logger (set to 0 to disable logging)
</p>
</td>
<td align="right" valign="top">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment