[CMF-checkins] CVS: Products/DCWorkflow - DCWorkflow.py:1.36.2.1

Jens Vagelpohl jens at dataflake.org
Wed Mar 16 06:33:54 EST 2005


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

Modified Files:
      Tag: CMF-1_5-branch
	DCWorkflow.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/DCWorkflow/DCWorkflow.py 1.36 => 1.36.2.1 ===
--- Products/DCWorkflow/DCWorkflow.py:1.36	Thu Aug 12 11:07:44 2004
+++ Products/DCWorkflow/DCWorkflow.py	Wed Mar 16 06:33:53 2005
@@ -184,10 +184,10 @@
         Allows this workflow to
         include actions to be displayed in the actions box.
         Called only when this workflow is applicable to
-        info.content.
+        info.object.
         Returns the actions to be displayed to the user.
         '''
-        ob = info.content
+        ob = info.object
         sdef = self._getWorkflowStateOf(ob)
         if sdef is None:
             return None



More information about the CMF-checkins mailing list