From 6a567eb888f3588e5ac2caea5909f78ebd0097d2 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Mon, 17 Jan 2005 12:38:33 +0000 Subject: [PATCH] CategoryTool should be a subclass of BaseTool git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2217 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Tool/CategoryTool.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/product/ERP5/Tool/CategoryTool.py b/product/ERP5/Tool/CategoryTool.py index 7d74fee9a1..444a39792b 100755 --- a/product/ERP5/Tool/CategoryTool.py +++ b/product/ERP5/Tool/CategoryTool.py @@ -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 -- 2.30.9