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

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/p/r/Products.PageCacheManager-1.2/Products/PageCacheManager/PageCache.py   Products.PageCacheManager(Download)
"""
 
from Products.CMFCore.CachingPolicyManager import createCPContext
from Products.CacheSetup.cmf_utils import \
    _checkConditionalGET as CSCheckConditionalGET
        if check_conditional_get:
            CMFCheckConditionalGET(ob, keywords)
        expr_context = createCPContext(object, view, keywords, time=time )
        for policy_id, policy in cpm.listPolicies():
            if policy.testPredicate(expr_context):

src/p/r/Products.TemplateCacheManager-0.1dev-r67896/Products/TemplateCacheManager/PageCache.py   Products.TemplateCacheManager(Download)
except: from pickle import Pickler, HIGHEST_PROTOCOL
 
from Products.CMFCore.CachingPolicyManager import createCPContext
from Products.StandardCacheManagers.RAMCacheManager import CacheException, _ByteCounter
 
 
 
        expr_context = createCPContext(object, view, keywords, time=time )
        for policy_id, policy in cpm.listPolicies():
            if policy.testPredicate(expr_context):

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_CachingPolicyManager.py   Products.CMFCore(Download)
    def _makeContext( self, **kw ):
        from Products.CMFCore.CachingPolicyManager import createCPContext
        return createCPContext( DummyContent2(self._epoch)
                              , 'foo_view', kw, self._epoch )