Commit 224dc861 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Use Core Folder.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11852 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 34916800
...@@ -30,7 +30,7 @@ from Products.CMFCore.utils import UniqueObject ...@@ -30,7 +30,7 @@ from Products.CMFCore.utils import UniqueObject
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Globals import InitializeClass, DTMLFile from Globals import InitializeClass, DTMLFile
from Products.ERP5Type.Document.Folder import Folder from Products.ERP5Type.Core.Folder import Folder
from Products.ERP5Type import Permissions, _dtmldir from Products.ERP5Type import Permissions, _dtmldir
class BaseTool (UniqueObject, Folder): class BaseTool (UniqueObject, Folder):
......
...@@ -39,7 +39,7 @@ import os ...@@ -39,7 +39,7 @@ import os
from Products.ERP5Type import Permissions from Products.ERP5Type import Permissions
from Products.ERP5Type import _dtmldir from Products.ERP5Type import _dtmldir
from Products.ERP5Type.Tool.BaseTool import BaseTool from Products.ERP5Type.Tool.BaseTool import BaseTool
from Products.ERP5Type.Document.Folder import Folder from Products.ERP5Type.Core.Folder import Folder
from Products.ERP5Type.Utils import readLocalPropertySheet, writeLocalPropertySheet, getLocalPropertySheetList from Products.ERP5Type.Utils import readLocalPropertySheet, writeLocalPropertySheet, getLocalPropertySheetList
from Products.ERP5Type.Utils import readLocalExtension, writeLocalExtension, getLocalExtensionList from Products.ERP5Type.Utils import readLocalExtension, writeLocalExtension, getLocalExtensionList
......
...@@ -298,11 +298,17 @@ def updateGlobals(this_module, global_hook, ...@@ -298,11 +298,17 @@ def updateGlobals(this_module, global_hook,
if key[0:2] != '__': if key[0:2] != '__':
setattr(Permissions, key, getattr(permissions_module, key)) setattr(Permissions, key, getattr(permissions_module, key))
# Return core document_class list (for ERP5Type only)
# this was introduced to permit overriding ERP5Type Document classes
# which was not possible when they were define in the Document folder
path, core_module_id_list = getModuleIdList(product_path, 'Core')
for document in core_module_id_list:
InitializeDocument(document, document_path=path)
# Return document_class list # Return document_class list
path, module_id_list = getModuleIdList(product_path, 'Document') path, module_id_list = getModuleIdList(product_path, 'Document')
for document in module_id_list: for document in module_id_list:
InitializeDocument(document, document_path=path) InitializeDocument(document, document_path=path)
return module_id_list return module_id_list + core_module_id_list
##################################################### #####################################################
# Modules Import # Modules Import
......
...@@ -30,7 +30,7 @@ from Globals import InitializeClass, PersistentMapping ...@@ -30,7 +30,7 @@ from Globals import InitializeClass, PersistentMapping
from Acquisition import aq_base, aq_parent, aq_inner, aq_acquire from Acquisition import aq_base, aq_parent, aq_inner, aq_acquire
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions from Products.ERP5Type import Permissions
from Products.ERP5Type.Document.Folder import Folder from Products.ERP5Type.Core.Folder import Folder
from Products.ERP5Type.Utils import cartesianProduct from Products.ERP5Type.Utils import cartesianProduct
from Products.ERP5Type.Base import TempBase from Products.ERP5Type.Base import TempBase
......
...@@ -33,7 +33,7 @@ from Products.ERP5Type import _dtmldir ...@@ -33,7 +33,7 @@ from Products.ERP5Type import _dtmldir
from Products.ERP5Type import PropertySheet, Permissions from Products.ERP5Type import PropertySheet, Permissions
from Products.ERP5Type.Utils import convertToUpperCase from Products.ERP5Type.Utils import convertToUpperCase
from Document.Folder import Folder from Core.Folder import Folder
from zLOG import LOG from zLOG import LOG
class XMLObject( Folder ): class XMLObject( Folder ):
......
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