2016-02-05 01:39:53 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
2011-04-08 22:20:34 +02:00
|
|
|
from plone.app.discussion.interfaces import IDiscussionSettings
|
2015-05-03 08:16:39 +02:00
|
|
|
from plone.registry.interfaces import IRegistry
|
|
|
|
from zope.component import getUtility
|
|
|
|
|
2011-04-08 22:20:34 +02:00
|
|
|
|
2014-03-03 16:15:12 +01:00
|
|
|
default_profile = 'profile-plone.app.discussion:default'
|
|
|
|
|
2011-04-08 22:20:34 +02:00
|
|
|
|
|
|
|
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')
|