Commit 48ea560e authored by Yoshinori Okuji's avatar Yoshinori Okuji

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
parent 4901a5e5
...@@ -169,28 +169,6 @@ class ERP5Site ( CMFSite, FolderMixIn ): ...@@ -169,28 +169,6 @@ class ERP5Site ( CMFSite, FolderMixIn ):
""" """
return ERP5Globals.movement_type_list 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') security.declarePublic('getOrderedGlobalActionList')
def getOrderedGlobalActionList(self, action_list): def getOrderedGlobalActionList(self, action_list):
""" """
......
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