Commit 6a567eb8 authored by Sebastien Robin's avatar Sebastien Robin

CategoryTool should be a subclass of BaseTool


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2217 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e4fab497
......@@ -31,10 +31,11 @@ ERP portal_categories tool.
"""
from Products.CMFCategory.CategoryTool import *
from Products.ERP5Type.Tool.BaseTool import BaseTool
from zLOG import LOG
class CategoryTool( CategoryTool ):
class CategoryTool( CategoryTool, BaseTool ):
"""
The CategoryTool object is the placeholder for all methods
and algorithms related to categories and relations in ERP5.
......@@ -63,17 +64,6 @@ class CategoryTool( CategoryTool ):
"""
Returns the uids of all categories provided in categories
relative_url -- a single relative url of a list of
relative urls
strict -- if set to 1, only return uids of parents, not
relative_url
"""
security.declareProtected(Permissions.AccessContentsInformation, 'getCategoryParentUidList')
def getCategoryParentUidList(self, relative_url, base_category = None, strict=0):
"""
Returns the uids of all categories provided in categories
relative_url -- a single relative url of a list of
relative urls
......
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