Commit fefd52d4 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added new type groups for Web Pages & Documents

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8644 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 83a92bf5
......@@ -491,6 +491,22 @@ class ERP5Site(FolderMixIn, CMFSite):
return self._getPortalGroupedTypeList('supply') or \
self._getPortalConfiguration('portal_supply_type_list')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalDocumentTypeList')
def getPortalDocumentTypeList(self):
"""
Return document types.
"""
return self._getPortalGroupedTypeList('dms_document')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalWebDocumentTypeList')
def getPortalWebDocumentTypeList(self):
"""
Return web page types.
"""
return self._getPortalGroupedTypeList('web_document')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalSupplyPathTypeList')
def getPortalSupplyPathTypeList(self):
......
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