From aec2f121554e9b893b2616bb91710f6194f795b9 Mon Sep 17 00:00:00 2001 From: Yusei Tahara <yusei@nexedi.com> Date: Tue, 18 Mar 2008 10:26:32 +0000 Subject: [PATCH] Add isItem method. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19986 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/Base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py index ebc7dce17f..975a10bdbc 100644 --- a/product/ERP5Type/Base.py +++ b/product/ERP5Type/Base.py @@ -3519,6 +3519,9 @@ class Base( CopyContainer, key = ('default_reindex_parameter', id(aq_base(self))) return tv.get(key) + security.declareProtected(Permissions.View, 'isItem' ) + def isItem(self): + return self.portal_type in self.getPortalItemTypeList() InitializeClass(Base) -- 2.30.9