View an object's catalog information
This How-to applies to:
Plone 2.5.x, Plone 2.1.x, Plone 2.0.x
This How-to is intended for:
Server Administrators, Integrators, Customizers, Developers
In your Plone root, from the ZMI, add a Script (Python). Give it the id getCatInfo, and use the code below:
from string import join obid = context.id path = join(context.getPhysicalPath(), '/') results = container.portal_catalog(path=path,getID=obid,sort_on='created',sort_order='reverse') rid = '' for r in results: rid = r.getRID() if rid: print container.portal_catalog.manage_objectInformation(rid=rid) else: print "Not in the catalog, apparently." return printed
After you save this, you can append /getCatInfo to any Plone URL to get complete catalog information about the page, folder, link, etc. you are looking at.
origins of this script
(easy to find with a search in google for the "Not in the catalog, apparently." quote, not so easy to find any other way. thanks for posting it here on plone.org... +lupa+ :-)