Registration of the default Zope profile does not seem to work anymore. It is probably due to Plone hot fix from 2011-02-08. Here we have implemented an alternative way to register the profile, which works even with the hotfix.
This commit is contained in:
parent
7294cc0c4d
commit
fd9dd569db
3 changed files with 8 additions and 8 deletions
|
@ -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('<!applicationName!>')
|
||||
|
|
|
@ -1,13 +1,6 @@
|
|||
<configure xmlns="http://namespaces.zope.org/zope"
|
||||
xmlns:browser="http://namespaces.zope.org/browser"
|
||||
xmlns:five="http://namespaces.zope.org/five"
|
||||
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
|
||||
i18n_domain="<!applicationName!>">
|
||||
|
||||
<!deprecated!>
|
||||
<genericsetup:registerProfile name="default"
|
||||
title="<!applicationName!>" description=""
|
||||
provides="Products.GenericSetup.interfaces.EXTENSION"
|
||||
for="Products.CMFPlone.interfaces.IPloneSiteRoot"/>
|
||||
|
||||
</configure>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue