plone.app.discussion/plone/app/discussion/upgrades.py

15 lines
425 B
Python
Raw Normal View History

from zope.component import getUtility
from plone.registry.interfaces import IRegistry
from plone.app.discussion.interfaces import IDiscussionSettings
2014-03-03 16:15:12 +01:00
default_profile = 'profile-plone.app.discussion:default'
def update_registry(context):
registry = getUtility(IRegistry)
registry.registerInterface(IDiscussionSettings)
2014-03-03 16:15:12 +01:00
def update_rolemap(context):
context.runImportStepFromProfile(default_profile, 'rolemap')