コード例 #1
0
    def setUp(self):
        import Products.CMFCore.exportimport
        from Products.CMFCore.CachingPolicyManager import CachingPolicy

        NodeAdapterTestCase.setUp(self)
        zcml.load_config('configure.zcml', Products.CMFCore.exportimport)

        self._obj = CachingPolicy('foo_policy', max_age_secs=0)
        self._XML = _CP_XML
コード例 #2
0
    def setUp(self):
        from Products.CMFCore.CachingPolicyManager import CachingPolicy

        self._obj = CachingPolicy('foo_policy', max_age_secs=0)
        self._XML = _CP_XML
コード例 #3
0
    def _makePolicy(self, policy_id, **kw):

        from Products.CMFCore.CachingPolicyManager import CachingPolicy
        return CachingPolicy(policy_id, **kw)
コード例 #4
0
 def _makePolicy(self, policy_id, **kw):
     return CachingPolicy(policy_id, **kw)