Commit aec2f121 authored by Yusei Tahara's avatar Yusei Tahara

Add isItem method.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19986 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4190179d
...@@ -3519,6 +3519,9 @@ class Base( CopyContainer, ...@@ -3519,6 +3519,9 @@ class Base( CopyContainer,
key = ('default_reindex_parameter', id(aq_base(self))) key = ('default_reindex_parameter', id(aq_base(self)))
return tv.get(key) return tv.get(key)
security.declareProtected(Permissions.View, 'isItem' )
def isItem(self):
return self.portal_type in self.getPortalItemTypeList()
InitializeClass(Base) InitializeClass(Base)
......
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