Commit 093e1afd authored by Sebastien Robin's avatar Sebastien Robin

initialize this products with ERP5Type


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1974 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1bf4f812
...@@ -17,3 +17,36 @@ ...@@ -17,3 +17,36 @@
# #
import CPSCorePatch, CPSDocumentPatch, SynchronizationToolPatch import CPSCorePatch, CPSDocumentPatch, SynchronizationToolPatch
import CPSCorePatch, CPSDocumentPatch, SynchronizationToolPatch
# Update ERP5 Globals
from Products.ERP5Type.Utils import initializeProduct, updateGlobals
from Products.ERP5Type import Permissions
import sys
this_module = sys.modules[ __name__ ]
document_classes = updateGlobals( this_module, globals(), permissions_module =
Permissions)
# Define object classes and tools
import ERP5CPSSite
object_classes = ( ERP5CPSSite.ERP5CPSSite,)
portal_tools = ( )
content_classes = ()
content_constructors = ()
# Finish installation
def initialize( context ):
import Document
from zLOG import LOG
LOG('In ERP5CPS initialize', 0, '')
initializeProduct(context, this_module, globals(),
document_module = Document,
document_classes = document_classes,
object_classes = object_classes,
portal_tools = portal_tools,
content_constructors = content_constructors,
content_classes = content_classes)
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