Commit 0186305d authored by Sebastien Robin's avatar Sebastien Robin

take care about the ALLOW_CLASS8TOOL file


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2811 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 974c86e7
...@@ -25,6 +25,8 @@ from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface ...@@ -25,6 +25,8 @@ from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5Type.Document.Folder import FolderMixIn from Products.ERP5Type.Document.Folder import FolderMixIn
from Products.ERP5Type.Document import addFolder from Products.ERP5Type.Document import addFolder
from Acquisition import aq_base, aq_parent, aq_inner, aq_acquire from Acquisition import aq_base, aq_parent, aq_inner, aq_acquire
from Products.ERP5Type import allowClassTool
import ERP5Defaults import ERP5Defaults
from Products.ERP5Type.Cache import CachingMethod from Products.ERP5Type.Cache import CachingMethod
from os import path from os import path
...@@ -562,7 +564,10 @@ class ERP5Generator(PortalGenerator): ...@@ -562,7 +564,10 @@ class ERP5Generator(PortalGenerator):
# Add ERP5Type Tools # Add ERP5Type Tools
addTool = p.manage_addProduct['ERP5Type'].manage_addTool addTool = p.manage_addProduct['ERP5Type'].manage_addTool
addTool('ERP5 Class Tool', None) if allowClassTool():
addTool('ERP5 Class Tool', None)
else:
addTool('ERP5 Dummy Class Tool', None)
# Add ERP5 SQL Catalog Tool # Add ERP5 SQL Catalog Tool
addTool = p.manage_addProduct['ERP5Catalog'].manage_addTool addTool = p.manage_addProduct['ERP5Catalog'].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