Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(8) | Call(4) | Derive(0) | Import(4)
src/e/r/erp5-HEAD/product/ERP5Type/patches/CachingPolicyManager.py erp5(Download)
from Products.CMFCore.CachingPolicyManager import CachingPolicy, \ CachingPolicyManager from App.special_dtml import DTMLFile from Products.CMFCore.Expression import Expression from App.Common import rfc1123_date
raise KeyError, "Policy %s does not exist!" % policy_id self._policies[ policy_id ] = CachingPolicy( policy_id , predicate , mtime_func
raise KeyError, "Policy %s already exists!" % policy_id self._policies[ policy_id ] = CachingPolicy( policy_id , predicate , mtime_func
src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/exportimport/tests/test_cachingpolicymgr.py Products.CMFCore(Download)
def setUp(self): from Products.CMFCore.CachingPolicyManager import CachingPolicy self._obj = CachingPolicy('foo_policy', max_age_secs=0) self._XML = _CP_XML
src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_CachingPolicyManager.py Products.CMFCore(Download)
def _makePolicy( self, policy_id, **kw ): from Products.CMFCore.CachingPolicyManager import CachingPolicy return CachingPolicy( policy_id, **kw )
def test_interfaces(self): from Products.CMFCore.CachingPolicyManager import CachingPolicy from Products.CMFCore.interfaces import ICachingPolicy verifyClass(ICachingPolicy, CachingPolicy)