Leonardo Rochael Almeida wrote:
@@ -615,8 +615,8 @@
     def getobject(self, rid, REQUEST=None):
         """Return a cataloged object given a 'data_record_id_'
-        obj = self.aq_parent.unrestrictedTraverse(self.getpath(rid))
-        if not obj:
+        obj = self.aq_parent.unrestrictedTraverse(self.getpath(rid), None)
+        if obj is None:

Please revert this change. You've changed the semantics of this statement and it will now mask errors in traversing to the path.

This is bad...



Simplistix - Content Management, Zope & Python Consulting
           - http://www.simplistix.co.uk

Zope-Checkins maillist  -  Zope-Checkins@zope.org

Reply via email to