Commit 5e44a55c authored by Jérome Perrin's avatar Jérome Perrin

do not test obj directly


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16806 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent abda3d7d
......@@ -875,7 +875,7 @@ class ZCatalog(Folder, Persistent, Implicit):
catalog = self.getSQLCatalog(sql_catalog_id)
if catalog is not None:
object = catalog[uid]
if object:
if object is not None:
return object.path
else:
return None
......
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