diff --git a/gen/plone25/installer.py b/gen/plone25/installer.py index c59c972..7608247 100644 --- a/gen/plone25/installer.py +++ b/gen/plone25/installer.py @@ -621,9 +621,14 @@ class ZopeInstaller: def finalizeInstallation(self): '''Performs some final installation steps.''' + cfg = self.config # Apply customization policy if any - cp = self.config.CustomizationPolicy + cp = cfg.CustomizationPolicy if cp and hasattr(cp, 'register'): cp.register(context) + # Install the default profile + cfg.profile_registry.registerProfile(self.productName, self.productName, + 'Installation of %s' % self.productName, 'profiles/default', + self.productName, cfg.EXTENSION, for_=cfg.IPloneSiteRoot) def install(self): self.logger.info('is being installed...') diff --git a/gen/plone25/templates/config.py b/gen/plone25/templates/config.py index 920f929..a1bb398 100644 --- a/gen/plone25/templates/config.py +++ b/gen/plone25/templates/config.py @@ -24,6 +24,7 @@ from Products.CMFCore import utils as cmfutils from Products.CMFCore.utils import getToolByName from Products.CMFPlone.PloneBatch import Batch from Products.CMFPlone.utils import ToolInit +from Products.CMFPlone.interfaces import IPloneSiteRoot from Products.CMFCore import DirectoryView from Products.CMFCore.DirectoryView import manage_addDirectoryView from Products.DCWorkflow.Transitions import TRIGGER_USER_ACTION @@ -32,6 +33,7 @@ from Products.Archetypes.Extensions.utils import installTypes from Products.Archetypes.Extensions.utils import install_subskin from Products.Archetypes.config import TOOL_NAME as ARCHETYPETOOLNAME from Products.Archetypes import listTypes, process_types +from Products.GenericSetup import EXTENSION, profile_registry import appy.gen import logging logger = logging.getLogger('') diff --git a/gen/plone25/templates/configure.zcml b/gen/plone25/templates/configure.zcml index 3ee8479..be6e398 100644 --- a/gen/plone25/templates/configure.zcml +++ b/gen/plone25/templates/configure.zcml @@ -1,13 +1,6 @@ - - -