Commit e813b810 authored by Jérome Perrin's avatar Jérome Perrin

ERP5: add a portal type group for post

parent 8b485cf9
...@@ -1279,6 +1279,14 @@ class ERP5Site(ResponseHeaderGenerator, FolderMixIn, CMFSite, CacheCookieMixin): ...@@ -1279,6 +1279,14 @@ class ERP5Site(ResponseHeaderGenerator, FolderMixIn, CMFSite, CacheCookieMixin):
""" """
return self._getPortalGroupedTypeList('domain') return self._getPortalGroupedTypeList('domain')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalPostTypeList')
def getPortalPostTypeList(self):
"""
Return post types.
"""
return self._getPortalGroupedTypeList('post')
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getPortalCurrentInventoryStateList') 'getPortalCurrentInventoryStateList')
def getPortalCurrentInventoryStateList(self): def getPortalCurrentInventoryStateList(self):
......
...@@ -290,6 +290,7 @@ class ERP5TypeInformation(XMLObject, ...@@ -290,6 +290,7 @@ class ERP5TypeInformation(XMLObject,
'document', 'web_document', 'file_document', 'embedded_document', 'document', 'web_document', 'file_document', 'embedded_document',
'recent_document', 'my_document', 'template_document', 'recent_document', 'my_document', 'template_document',
'crawler_index', 'crawler_index',
'post',
# Solvers and simulation # Solvers and simulation
'divergence_tester', 'target_solver', 'delivery_solver', 'divergence_tester', 'target_solver', 'delivery_solver',
'amount_generator', 'amount_generator_line', 'amount_generator_cell', 'amount_generator', 'amount_generator_line', 'amount_generator_cell',
......
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