[Zope-Checkins] CVS: Zope/lib/python/Products/ZCatalog - ZCatalog.py:1.120.4.1
Chris McDonough
chrism@zope.com
Thu, 29 Aug 2002 01:31:52 -0400
Update of /cvs-repository/Zope/lib/python/Products/ZCatalog
In directory cvs.zope.org:/tmp/cvs-serv30531/lib/python/Products/ZCatalog
Modified Files:
Tag: chrism-install-branch
ZCatalog.py
Log Message:
CVS up -j from HEAD on chrism-installer-branch.
Sorry folks on various mailing lists whom are subjected to this.
If I knew how to cut down on unnecessary checkin messages to
the lists, I would.
=== Zope/lib/python/Products/ZCatalog/ZCatalog.py 1.120 => 1.120.4.1 ===
--- Zope/lib/python/Products/ZCatalog/ZCatalog.py:1.120 Thu Aug 15 09:10:16 2002
+++ Zope/lib/python/Products/ZCatalog/ZCatalog.py Thu Aug 29 01:31:19 2002
@@ -553,6 +553,16 @@
obj = self.resolve_url(self.getpath(rid), REQUEST)
return obj
+ def getMetadataForUID(self, uid):
+ """return the correct metadata given the uid, usually the path"""
+ rid = self._catalog.uids[uid]
+ return self._catalog.getMetadataForRID(rid)
+
+ def getIndexDataForUID(self, uid):
+ """return the current index contents given the uid, usually the path"""
+ rid = self._catalog.uids[uid]
+ return self._catalog.getIndexDataForRID(rid)
+
def getMetadataForRID(self, rid):
"""return the correct metadata for the cataloged record id"""
return self._catalog.getMetadataForRID(int(rid))