Skip to content

Commit

Permalink
documentation cleanup, typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zopyx committed Jul 17, 2004
1 parent 748db0b commit f68f6cd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions README.txt
Expand Up @@ -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())


2 changes: 1 addition & 1 deletion dtml/catalogAdvanced.dtml
Expand Up @@ -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">
Expand Down

0 comments on commit f68f6cd

Please sign in to comment.