[CMF-checkins] CVS: Products/CMFCore/tests -
test_CachingPolicyManager.py:1.14
Jens Vagelpohl
jens at dataflake.org
Wed Mar 16 06:10:17 EST 2005
Update of /cvs-repository/Products/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv25098/CMFCore/tests
Modified Files:
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.13 => 1.14 ===
--- Products/CMFCore/tests/test_CachingPolicyManager.py:1.13 Wed Nov 10 15:31:14 2004
+++ Products/CMFCore/tests/test_CachingPolicyManager.py Wed Mar 16 06:09:47 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