From 48ea560eea72d0eaed734d85d62ec92051053873 Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Wed, 18 Aug 2004 17:11:22 +0000 Subject: [PATCH] Remove getModuleList. Use the new skin ERP5Site_getModuleItemList instead from now on. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1392 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/ERP5Site.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/product/ERP5/ERP5Site.py b/product/ERP5/ERP5Site.py index 72ee5b6970..6b80a87b2b 100755 --- a/product/ERP5/ERP5Site.py +++ b/product/ERP5/ERP5Site.py @@ -169,28 +169,6 @@ class ERP5Site ( CMFSite, FolderMixIn ): """ return ERP5Globals.movement_type_list - security.declarePublic('getModuleList') - def getModuleList(self): - """ - Return a list of modules - result dependent on user - result is translated and cached - """ - # Return Cache - def getModuleListFor(user): - result = [] - for module in self.objectValues('ERP5 Folder'): - # XXX Restrict access to modules to valid users - result.append({'url': module.absolute_url(), 'id': module.getId(), 'title': self.gettext(module.getTitle())}) - result.sort(lambda x,y: cmp(x['title'], y['title'])) - return result - - user = str(_getAuthenticatedUser(self)) - method = CachingMethod(getModuleListFor, id='getModuleList', cache_duration=300) - return method(user) - - #getModuleList = CachingMethod(getModuleList, cache_duration=300, request_keys=('AUTHENTICATED_USER', 'time')) - - - security.declarePublic('getOrderedGlobalActionList') def getOrderedGlobalActionList(self, action_list): """ -- 2.30.9