[CMF-checkins] CVS: Products/CMFCore - TypesTool.py:1.72
utils.py:1.58
Yvo Schubbe
y.2004_ at wcm-solutions.de
Fri Aug 6 11:19:00 EDT 2004
Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv23494/CMFCore
Modified Files:
TypesTool.py utils.py
Log Message:
- marked getActionById as deprecated
=== Products/CMFCore/TypesTool.py 1.71 => 1.72 ===
--- Products/CMFCore/TypesTool.py:1.71 Mon Jul 19 14:11:35 2004
+++ Products/CMFCore/TypesTool.py Fri Aug 6 11:19:00 2004
@@ -16,6 +16,7 @@
"""
from sys import exc_info
+from warnings import warn
from AccessControl import ClassSecurityInfo
from AccessControl import getSecurityManager
@@ -268,6 +269,9 @@
"""
Return the URL of the action whose ID is id.
"""
+ warn('getActionById() is deprecated and will be removed in CMF 1.6. '
+ 'In most cases getActionInfo() will be the right replacement.',
+ DeprecationWarning)
context = getActionContext( self )
for action in self.listActions():
=== Products/CMFCore/utils.py 1.57 => 1.58 ===
--- Products/CMFCore/utils.py:1.57 Sat Jul 31 08:58:37 2004
+++ Products/CMFCore/utils.py Fri Aug 6 11:19:00 2004
@@ -160,9 +160,9 @@
security.declarePublic( 'getActionContext' )
def getActionContext( self ):
- # getActionContext is deprecated and might be removed some day.
+ # getActionContext is deprecated and will be removed in CMF 1.6.
# This is only used by the deprecated _getViewFor function and the
- # getActionById method which might also become deprecated.
+ # deprecated getActionById method.
data = { 'object_url' : ''
, 'folder_url' : ''
, 'portal_url' : ''
More information about the CMF-checkins
mailing list