Commit 217cc526 authored by Sebastien Robin's avatar Sebastien Robin

patched hasContent


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2267 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7526c73b
......@@ -67,6 +67,10 @@ class CategoryTool( CMFCategoryTool, BaseTool ):
# patch, so that we are able to add the BaseCategory
allowedContentTypes = BaseTool.allowedContentTypes
security.declareProtected(Permissions.View, 'hasContent')
def hasContent(self,id):
return id in self.objectIds()
security.declareProtected(Permissions.AccessContentsInformation, 'getCategoryParentUidList')
def getCategoryParentUidList(self, relative_url, base_category = None, strict=0):
"""
......
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