[CMF-checkins] CVS: Products/CMFCore/tests - test_CachingPolicyManager.py:1.12.14.2

Jens Vagelpohl jens at dataflake.org
Wed Mar 16 06:34:23 EST 2005


Update of /cvs-repository/Products/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv31707/CMFCore/tests

Modified Files:
      Tag: CMF-1_5-branch
	test_CachingPolicyManager.py 
Log Message:
- CMFCore.CachingPolicyManager and CMFCore.ActionInformation: The names
  available to TALES expressions throughout the CMF showed some
  inconsistencies. To prevent confusion the names "content" and
  "content_url" that were used for Cache Policy Manager policies as well
  as the special ActionInformation.oai class are now deprecated and will
  be removed in CMF 1.7. The canonical names to be used are "object" and
  "object_url", which matches all other CMF expression contexts with
  DCWorkflow being the only exception due to its non-CMF roots.
  (http://www.zope.org/Collectors/CMF/328)


=== Products/CMFCore/tests/test_CachingPolicyManager.py 1.12.14.1 => 1.12.14.2 ===
--- Products/CMFCore/tests/test_CachingPolicyManager.py:1.12.14.1	Wed Nov 10 15:31:48 2004
+++ Products/CMFCore/tests/test_CachingPolicyManager.py	Wed Mar 16 06:33:53 2005
@@ -62,7 +62,7 @@
     def test_typePredicate( self ):
 
         policy = self._makePolicy( 'typePredicate'
-                           , predicate='python:content.Type() == "Dummy"' )
+                           , predicate='python:object.Type() == "Dummy"' )
         context = self._makeContext()
         headers = policy.getHeaders( context )
 
@@ -73,7 +73,7 @@
     def test_typePredicateMiss( self ):
 
         policy = self._makePolicy( 'typePredicate'
-                        , predicate='python:content.Type() == "Foolish"' )
+                        , predicate='python:object.Type() == "Foolish"' )
         context = self._makeContext()
         headers = policy.getHeaders( context )
 



More information about the CMF-checkins mailing list