Commit 1e945de2 authored by Jérome Perrin's avatar Jérome Perrin

__getitem__ has been renamed in getRecordForUid


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34619 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 675c5d93
...@@ -923,9 +923,9 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -923,9 +923,9 @@ class ZCatalog(Folder, Persistent, Implicit):
""" """
catalog = self.getSQLCatalog(sql_catalog_id) catalog = self.getSQLCatalog(sql_catalog_id)
if catalog is not None: if catalog is not None:
object = catalog[uid] record = catalog.getRecordForUid(uid)
if object is not None: if record is not None:
return object.path return record.path
else: else:
return None return None
getPath = getpath getPath = getpath
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment