Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(22)  |  Call(16)  |  Derive(0)  |  Import(6)

src/p/l/plone.app.upgrade-1.3.6/plone/app/upgrade/v31/betas.py   plone.app.upgrade(Download)
from borg.localrole.utils import replace_local_role_manager
from plone.portlets.interfaces import IPortletType
from zope.component import getUtilitiesFor
from zope.interface import Interface
 
    removeDoubleGenericSetupSteps(portal, out)
    reinstallCMFPlacefulWorkflow(portal, out)
    replace_local_role_manager(portal)
 
    return out

src/p/l/plone.app.upgrade-HEAD/plone/app/upgrade/v31/betas.py   plone.app.upgrade(Download)
from borg.localrole.utils import replace_local_role_manager
from plone.portlets.interfaces import IPortletType
from zope.component import getUtilitiesFor
from zope.interface import Interface
 
    removeDoubleGenericSetupSteps(portal, out)
    reinstallCMFPlacefulWorkflow(portal, out)
    replace_local_role_manager(portal)
 
    return out

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/setuphandlers.py   Products.CMFPlone(Download)
    import AcceleratedHTTPCacheManager
from Products.StandardCacheManagers.RAMCacheManager import RAMCacheManager
from borg.localrole.utils import replace_local_role_manager
from plone.keyring.interfaces import IKeyManager
from plone.keyring.keymanager import KeyManager
 
    assignTitles(site)
    replace_local_role_manager(site)
    addCacheHandlers(site)
    addCacheForResourceRegistry(site)

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/setuphandlers.py   Products.CMFPlone(Download)
    import AcceleratedHTTPCacheManager
from Products.StandardCacheManagers.RAMCacheManager import RAMCacheManager
from borg.localrole.utils import replace_local_role_manager
from plone.keyring.interfaces import IKeyManager
from plone.keyring.keymanager import KeyManager
 
    assignTitles(site)
    replace_local_role_manager(site)
    addCacheHandlers(site)
    addCacheForResourceRegistry(site)

src/p/l/plone.app.upgrade-1.3.6/plone/app/upgrade/v31/tests.py   plone.app.upgrade(Download)
from borg.localrole.utils import replace_local_role_manager
from zope.interface import noLongerProvides
 
from Products.PlonePAS.interfaces.plugins import ILocalRolesPlugin
 
        uf.plugins.activatePlugin(ILocalRolesPlugin, 'local_roles')
        # Bring things back to normal
        replace_local_role_manager(self.portal)
        plugins = uf.plugins.listPlugins(ILocalRolesPlugin)
        self.assertEqual(len(plugins), 1)
        uf.plugins.activatePlugin(ILocalRolesPlugin, 'local_roles')
        # run the upgrade twice
        replace_local_role_manager(self.portal)
        replace_local_role_manager(self.portal)
        plugins = uf.plugins.listPlugins(ILocalRolesPlugin)
        # Run the upgrade, which shouldn't fail even if the expected
        # plugin is missing
        replace_local_role_manager(self.portal)
        plugins = uf.plugins.listPlugins(ILocalRolesPlugin)
        self.assertEqual(len(plugins), 1)

src/p/l/plone.app.upgrade-HEAD/plone/app/upgrade/v31/tests.py   plone.app.upgrade(Download)
from borg.localrole.utils import replace_local_role_manager
from zope.interface import noLongerProvides
 
from Products.PlonePAS.interfaces.plugins import ILocalRolesPlugin
 
        uf.plugins.activatePlugin(ILocalRolesPlugin, 'local_roles')
        # Bring things back to normal
        replace_local_role_manager(self.portal)
        plugins = uf.plugins.listPlugins(ILocalRolesPlugin)
        self.assertEqual(len(plugins), 1)
        uf.plugins.activatePlugin(ILocalRolesPlugin, 'local_roles')
        # run the upgrade twice
        replace_local_role_manager(self.portal)
        replace_local_role_manager(self.portal)
        plugins = uf.plugins.listPlugins(ILocalRolesPlugin)
        # Run the upgrade, which shouldn't fail even if the expected
        # plugin is missing
        replace_local_role_manager(self.portal)
        plugins = uf.plugins.listPlugins(ILocalRolesPlugin)
        self.assertEqual(len(plugins), 1)