diff --git a/product/ZSQLCatalog/ZSQLCatalog.py b/product/ZSQLCatalog/ZSQLCatalog.py index 3ecb24178919cc577543679d3d3731dd06a3b854..93508f396c244adbfcabf994675dbfef4c8580ff 100644 --- a/product/ZSQLCatalog/ZSQLCatalog.py +++ b/product/ZSQLCatalog/ZSQLCatalog.py @@ -923,9 +923,9 @@ class ZCatalog(Folder, Persistent, Implicit): """ catalog = self.getSQLCatalog(sql_catalog_id) if catalog is not None: - object = catalog[uid] - if object is not None: - return object.path + record = catalog.getRecordForUid(uid) + if record is not None: + return record.path else: return None getPath = getpath