[CMF-checkins] CVS: CMF/CMFCore - TypesTool.py:1.66
Tres Seaver
tseaver at zope.com
Wed Mar 3 19:06:17 EST 2004
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv32404/CMFCore
Modified Files:
TypesTool.py
Log Message:
- Note that Metatype is deprecated.
=== CMF/CMFCore/TypesTool.py 1.65 => 1.66 ===
--- CMF/CMFCore/TypesTool.py:1.65 Mon Jan 12 05:26:10 2004
+++ CMF/CMFCore/TypesTool.py Wed Mar 3 19:05:46 2004
@@ -16,6 +16,7 @@
"""
import sys
+import warnings
from Globals import DTMLFile
from Globals import InitializeClass
@@ -840,11 +841,17 @@
def listContentTypes( self, container=None, by_metatype=0 ):
"""
Return list of content types.
+
+ o Passing 'by_metatype' is deprecated (type information may not
+ correspond 1:1 to an underlying meta_type).
"""
typenames = {}
for t in self.listTypeInfo( container ):
if by_metatype:
+ LOG('CMFCore.TypesTool', WARNING,
+ 'TypeInformation.listContentTypes(by_metatype=1) '
+ +'is deprecated.')
name = t.Metatype()
else:
name = t.getId()
More information about the CMF-checkins
mailing list