Commit c35f3b92 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Make hasContent more efficient.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3927 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d233d028
......@@ -129,7 +129,7 @@ class FolderMixIn(ExtensionClass.Base):
security.declareProtected(Permissions.View, 'hasContent')
def hasContent(self,id):
return id in self.objectIds()
return self.hasObject(id)
# Get the content
security.declareProtected(Permissions.View, 'searchFolder')
......
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