[ZCM] [ZC] 212/ 3 Comment "Adding 'path' to catalog metadata yields a blank value"
Collector: Zope Bugs and Patches ...
zope-coders@zope.org
Fri, 15 Feb 2002 16:54:50 -0500
Issue #212 Update (Comment) "Adding 'path' to catalog metadata yields a blank value"
Status Rejected, Catalog/bug medium
To followup, visit:
http://collector.zope.org/Zope/212
==============================================================
= Comment - Entry #3 by chrisw on Feb 15, 2002 4:54 pm
But that doesnt' explain why if you _do_ do it this way, you get a blank metadata value.
What would happen, for example, if the index was cataloging a path other than that of the object being indexed?
Smells like a bug in PathIndex or something...
________________________________________
= Reject - Entry #2 by evan on Feb 15, 2002 3:08 pm
Status: Pending => Rejected
You don't need to add 'path' as metadata; Catalog brains already have getPath() and getURL() methods you can use.
________________________________________
= Request - Entry #1 by Anonymous User on Feb 11, 2002 10:31 am
If you add 'path' to the list of identifiers that are in the metadata of a catalog, then query the catalog and check the path attribute of a brains object, the path attribute doesn't contain the path.
The indexed path, as shown on the catalog's 'Indexes' management screen in the ZMI, works fine however. It just doesn't work as metadata.
==============================================================