[Erp5-report] r29544 - /erp5/trunk/products/ERP5Type/__init__.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Oct 9 17:10:31 CEST 2009
Author: jp
Date: Fri Oct 9 17:10:30 2009
New Revision: 29544
URL: http://svn.erp5.org?rev=29544&view=rev
Log:
Refactored version of Interactor with compoenent sysytem
Modified:
erp5/trunk/products/ERP5Type/__init__.py
Modified: erp5/trunk/products/ERP5Type/__init__.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/__init__.py?rev=29544&r1=29543&r2=29544&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/__init__.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/__init__.py [utf8] Fri Oct 9 17:10:30 2009
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
@@ -29,9 +30,9 @@
ERP5Type is provides a RAD environment for Zope / CMF
All ERP5 classes derive from ERP5Type
"""
+
# Switch(es) for ongoing development which require single code base
USE_BASE_TYPE = False
-USE_INTERACTOR = False
# Update ERP5 Globals
import sys, Permissions, os
@@ -99,9 +100,15 @@
# We should register local classes at some point
from Products.ERP5Type.Utils import initializeLocalDocumentRegistry
initializeLocalDocumentRegistry()
- # Experimental Interactor
- if USE_INTERACTOR:
- import Interactor
+ # We can now setup global interactors
+ from Products.ERP5Type.InitGenerator import initializeProductInteractorRegistry
+ initializeProductInteractorRegistry()
+ # And local interactors
+ from Products.ERP5Type.Utils import initializeLocalInteractorRegistry
+ initializeLocalInteractorRegistry()
+ # We can now install all interactors
+ from Products.ERP5Type.InitGenerator import installInteractorClassRegistry
+ installInteractorClassRegistry()
from AccessControl.SecurityInfo import allow_module
from AccessControl.SecurityInfo import ModuleSecurityInfo
More information about the Erp5-report
mailing list