Commit 610b2abe authored by Arnaud Fontaine's avatar Arnaud Fontaine

Add erp5.component module.

parent d91fb0c9
......@@ -1041,10 +1041,12 @@ def initializeProduct( context,
# once.
try:
import erp5.portal_type
import erp5.component
except ImportError:
from dynamic.dynamic_module import initializeDynamicModules
initializeDynamicModules()
import erp5.portal_type
import erp5.component
# Tools initialization
tools = portal_tools
......
......@@ -85,6 +85,8 @@ def initializeDynamicModules():
holds accessor holders of ZODB Property Sheets
erp5.accessor_holder.portal_type
holds accessors holders of Portal Types
erp5.component:
holds component modules
"""
erp5 = ModuleType("erp5")
sys.modules["erp5"] = erp5
......@@ -116,3 +118,7 @@ def initializeDynamicModules():
from portal_type_class import loadTempPortalTypeClass
erp5.temp_portal_type = registerDynamicModule('erp5.temp_portal_type',
loadTempPortalTypeClass)
# Components
erp5.component = ModuleType("erp5.component")
sys.modules["erp5.component"] = erp5.component
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