Commit aee1ec8b authored by Jérome Perrin's avatar Jérome Perrin

use type tool API

remove commented out code


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35142 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 22808189
...@@ -439,7 +439,7 @@ class ERP5Site(FolderMixIn, CMFSite): ...@@ -439,7 +439,7 @@ class ERP5Site(FolderMixIn, CMFSite):
""" """
def getTypeList(group): def getTypeList(group):
type_list = [] type_list = []
for pt in self.portal_types.objectValues(): for pt in self.portal_types.listTypeInfo():
if group in getattr(pt, 'group_list', ()): if group in getattr(pt, 'group_list', ()):
type_list.append(pt.getId()) type_list.append(pt.getId())
...@@ -1563,8 +1563,6 @@ class ERP5Generator(PortalGenerator): ...@@ -1563,8 +1563,6 @@ class ERP5Generator(PortalGenerator):
addTool('ERP5 Memcached Tool', None) addTool('ERP5 Memcached Tool', None)
if not p.hasObject('portal_types'): if not p.hasObject('portal_types'):
addTool('ERP5 Types Tool', None) addTool('ERP5 Types Tool', None)
#transaction.get().beforeCommitHook(lambda:
# p.portal_types.Base_setDefaultSecurity())
try: try:
addTool = p.manage_addProduct['ERP5Subversion'].manage_addTool addTool = p.manage_addProduct['ERP5Subversion'].manage_addTool
......
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