plone.app.discussion/plone/app/discussion/upgrades.py
2014-05-15 17:51:05 +02:00

15 lines
425 B
Python

from zope.component import getUtility
from plone.registry.interfaces import IRegistry
from plone.app.discussion.interfaces import IDiscussionSettings
default_profile = 'profile-plone.app.discussion:default'
def update_registry(context):
registry = getUtility(IRegistry)
registry.registerInterface(IDiscussionSettings)
def update_rolemap(context):
context.runImportStepFromProfile(default_profile, 'rolemap')