Commit e5ca8e13 authored by Ivan Tyagov's avatar Ivan Tyagov

Add API to return embedded document types.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42043 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 36bc8d5b
...@@ -779,6 +779,14 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin): ...@@ -779,6 +779,14 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
""" """
return self._getPortalGroupedTypeList('document') return self._getPortalGroupedTypeList('document')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalEmbeddedDocumentTypeList')
def getPortalEmbeddedDocumentTypeList(self):
"""
Return embedded document types.
"""
return self._getPortalGroupedTypeList('embedded_document')
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getPortalWebDocumentTypeList') 'getPortalWebDocumentTypeList')
def getPortalWebDocumentTypeList(self): def getPortalWebDocumentTypeList(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