# -*- coding: utf-8 -*-
from AccessControl.Permissions import add_user_folders
from plone.session.plugins import session
from Products.PluggableAuthService.PluggableAuthService import \
    registerMultiPlugin

registerMultiPlugin(session.SessionPlugin.meta_type)


def initialize(context):
    context.registerClass(
        session.SessionPlugin,
        permission=add_user_folders,
        constructors=(
            session.manage_addSessionPluginForm,
            session.manage_addSessionPlugin),
        visibility=None
    )
