Commit 03902005 authored by Andreas Jung's avatar Andreas Jung

documentation cleanup, typo

parent e877fd50
...@@ -59,4 +59,16 @@ ZCatalog ...@@ -59,4 +59,16 @@ ZCatalog
'pghandler' which must be a handler instance implementing the 'pghandler' which must be a handler instance implementing the
IProgressHandler interface (see ProgressHandler.py). This can be useful IProgressHandler interface (see ProgressHandler.py). This can be useful
to provide logging during long running operations. 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 @@ ...@@ -38,7 +38,7 @@
</tr> </tr>
<tr> <tr>
<td align="left" valign="top"> <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> </p>
</td> </td>
<td align="right" valign="top"> <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