The patch for Zope 2.10 and trunk is even simpler (see below). I completely failed to get a unittest for the access permissions working though, so I'm not commiting this.
+ security.declareProtected(access_contents_information, 'manage_hasId')
def manage_hasId(self, REQUEST):
""" check if the folder has an object with REQUEST['id'] """
The patch for Zope 2.10 and trunk is even simpler (see below). I completely failed to get a unittest for the access permissions working though, so I'm not commiting this.
Index: ObjectManager.py ======= ======= ======= ======= ======= ======= ======= ======= ====
out= out+((k, stat),)
=======
--- ObjectManager.py (revision 68642)
+++ ObjectManager.py (working copy)
@@ -703,6 +703,7 @@
return marshal.dumps(out)
+ security. declareProtecte d(access_ contents_ information, 'manage_hasId')
def manage_hasId(self, REQUEST):
""" check if the folder has an object with REQUEST['id'] """