[CMF-checkins] CVS: Products/CMFCore - WorkflowTool.py:1.46.2.8

Yvo Schubbe y.2005- at wcm-solutions.de
Wed Jun 22 09:44:57 EDT 2005


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

Modified Files:
      Tag: CMF-1_5-branch
	WorkflowTool.py 
Log Message:
- marked WorkflowInformation and getActionsFor as deprecated


=== Products/CMFCore/WorkflowTool.py 1.46.2.7 => 1.46.2.8 ===
--- Products/CMFCore/WorkflowTool.py:1.46.2.7	Mon Jun 20 13:19:21 2005
+++ Products/CMFCore/WorkflowTool.py	Wed Jun 22 09:44:26 2005
@@ -16,6 +16,7 @@
 """
 
 import sys
+from warnings import warn
 
 from AccessControl import ClassSecurityInfo
 from Acquisition import aq_base, aq_inner, aq_parent
@@ -43,6 +44,9 @@
         querying actions without mediation of the 'portal_actions' tool.
     """
     def __init__(self, object):
+        warn('WorkflowInformation() is deprecated and will be removed in '
+             'CMF 1.7.',
+             DeprecationWarning)
         self.content = object
         self.content_url = object.absolute_url()
         self.portal_url = self.folder_url = ''
@@ -259,6 +263,9 @@
         """ Return a list of action dictionaries for 'ob', just as though
             queried via 'ActionsTool.listFilteredActionsFor'.
         """
+        warn('getActionsFor() is deprecated and will be removed in CMF 1.7. '
+             'Please use listActionInfos() instead.',
+             DeprecationWarning)
         return self.listActions( WorkflowInformation( ob ) )
 
     security.declarePublic('doActionFor')



More information about the CMF-checkins mailing list