Commit 3606d366 authored by Guillaume Michon's avatar Guillaume Michon

Bug fix in getobject() : an object may be false while existing.

See http://www.erp5.org/pipermail/erp5-dev/2004-May/000003.html for more details.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5721 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8b53a367
...@@ -703,7 +703,7 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -703,7 +703,7 @@ class ZCatalog(Folder, Persistent, Implicit):
path = self.getpath(uid, sql_catalog_id=sql_catalog_id) path = self.getpath(uid, sql_catalog_id=sql_catalog_id)
obj = self.aq_parent.unrestrictedTraverse(path) obj = self.aq_parent.unrestrictedTraverse(path)
if not obj: if obj is None:
if REQUEST is None: if REQUEST is None:
REQUEST=self.REQUEST REQUEST=self.REQUEST
obj = self.resolve_url(path, REQUEST) obj = self.resolve_url(path, REQUEST)
......
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