[Zope] Re: Catalog problem

Tres Seaver tseaver at zope.com
Tue Feb 8 13:25:20 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kevin Carlson wrote:

| I have a Zope db that contains several thousand documents all indexed in
| a single catalog.  When I query this catalog in the ZMI, I get results,
| but when I query this catalog as an anonymous user through a
| dtml-method, no results are returned.  The catalog in question is
| actually the portal_catalog from a CMF-1.3 and I am curious as to
| whether or not the allowedRolesAndUsers index is automatically
| referenced when querying the portal_catalog?

Yes, that is one of the design goals of the portal_catalog tool:  users
see only search results which they are allowed to view.  If your content
is all in a workflow state which does not permit anonymous access
("private" in the default workflow), then anonymous will not find any
search results.

| Also, when I try and reindex some of the indices, I get a POS key error...

"POSKeyError" or "POSError -- Conflict"?  The first one is Bad News
(tm);  it suggests that you have some cruft in the catalog, and may need
to recover the ZODB.  The second is "normal" -- you may need to stop
other write activity while you do the reindexing.

Tres.
- --
===============================================================
Tres Seaver                                tseaver at zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCCQQQGqWXf00rNCgRAv2rAJ0UmyyUWVCpfsVBu44ZDnDAgJdgfACbByfo
JuYi8/t/+lOce6VjB1DlElg=
=XY4/
-----END PGP SIGNATURE-----



More information about the Zope mailing list