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

All Samples(8)  |  Call(6)  |  Derive(0)  |  Import(2)

src/p/l/plone.app.upgrade-1.3.6/plone/app/upgrade/v40/alphas.py   plone.app.upgrade(Download)
from Acquisition import aq_base
from Acquisition import aq_get
from Products.CMFCore.CachingPolicyManager import manage_addCachingPolicyManager
from Products.CMFCore.DirectoryView import _dirreg
from Products.CMFCore.interfaces import ICachingPolicyManager
        del cpm
        transaction.savepoint(optimistic=True)
        manage_addCachingPolicyManager(portal)
        addCacheHandlers(portal)
        addCacheForResourceRegistry(portal)

src/p/l/plone.app.upgrade-HEAD/plone/app/upgrade/v40/alphas.py   plone.app.upgrade(Download)
from Acquisition import aq_base
from Acquisition import aq_get
from Products.CMFCore.CachingPolicyManager import manage_addCachingPolicyManager
from Products.CMFCore.DirectoryView import _dirreg
from Products.CMFCore.interfaces import ICachingPolicyManager
        del cpm
        transaction.savepoint(optimistic=True)
        manage_addCachingPolicyManager(portal)
        addCacheHandlers(portal)
        addCacheForResourceRegistry(portal)

src/p/r/Products.CacheSetup-1.2.1/Products/CacheSetup/enabler.py   Products.CacheSetup(Download)
    else:
        old_policies = []
    CachingPolicyManager.manage_addCachingPolicyManager(portal)
    cpm = getattr(portal, CPM_ID)
    for p in old_policies:

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_CachingPolicyManager.py   Products.CMFCore(Download)
        self.portal.doc3.modified_date = now
 
        CachingPolicyManager.manage_addCachingPolicyManager(self.portal)
        cpm = self.portal.caching_policy_manager
 
 
        from Products.CMFCore import CachingPolicyManager
        CachingPolicyManager.manage_addCachingPolicyManager(self.portal)
 
    def tearDown(self):
        self.portal._setObject('doc1', CacheableDummyContent('doc1'))
        self.portal._setObject('doc2', CacheableDummyContent('doc2'))
        CachingPolicyManager.manage_addCachingPolicyManager(self.portal)
        cpm = self.portal.caching_policy_manager