From 1e945de267c7acfae43ebfb9d19f9b2bd8bbe834 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Fri, 16 Apr 2010 12:06:57 +0000
Subject: [PATCH] __getitem__ has been renamed in getRecordForUid

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34619 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ZSQLCatalog/ZSQLCatalog.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/product/ZSQLCatalog/ZSQLCatalog.py b/product/ZSQLCatalog/ZSQLCatalog.py
index 3ecb241789..93508f396c 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
-- 
2.30.9