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

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


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

Modified Files:
	WorkflowTool.py 
Log Message:
- marked WorkflowInformation and getActionsFor as deprecated


=== Products/CMFCore/WorkflowTool.py 1.55 => 1.56 ===
--- Products/CMFCore/WorkflowTool.py:1.55	Mon Jun 20 13:19:57 2005
+++ Products/CMFCore/WorkflowTool.py	Wed Jun 22 09:44:52 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