From 0117f354afcfb492c013a16c882c177452f257d4 Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Wed, 29 Aug 2007 17:30:47 +0000 Subject: [PATCH] Added module type list. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15936 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/ERP5Site.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/product/ERP5/ERP5Site.py b/product/ERP5/ERP5Site.py index e1b516aa9d..8a4d49bd0f 100644 --- a/product/ERP5/ERP5Site.py +++ b/product/ERP5/ERP5Site.py @@ -937,6 +937,14 @@ class ERP5Site(FolderMixIn, CMFSite): """ return self._getPortalGroupedTypeList('calendar_period') + security.declareProtected(Permissions.AccessContentsInformation, + 'getPortalModuleTypeList') + def getPortalModuleTypeList(self): + """ + Return module types. + """ + return self._getPortalGroupedTypeList('module') + security.declareProtected(Permissions.AccessContentsInformation, 'getDefaultModuleId') def getDefaultModuleId(self, portal_type, default=MARKER): -- 2.30.9