Log message for revision 40963:
More explicit deprecation warning message.
Changed:
U CMF/branches/1.6/CMFCore/TypesTool.py
-=-
Modified: CMF/branches/1.6/CMFCore/TypesTool.py
===================================================================
--- CMF/branches/1.6/CMFCore/TypesTool.py 2005-12-21 16:09:04 UTC (rev
40962)
+++ CMF/branches/1.6/CMFCore/TypesTool.py 2005-12-21 16:36:46 UTC (rev
40963)
@@ -775,10 +775,11 @@
# This attempt harbors the problem that the first match on
# meta_type will be used. There could potentially be more
# than one TypeInformation sharing the same meta_type.
- warn('Please switch to the new format for typeinfo names '
- '\"product_id: type_id (meta_type)\", the old '
- 'spelling will disappear in CMF 2.0', DeprecationWarning,
- stacklevel=2)
+ warn("Please switch to the new format "
+ "'product_id: type_id (meta_type)' "
+ "for typeinfo name %r, the old "
+ "spelling will disappear in CMF 2.0" % typeinfo_name,
+ DeprecationWarning, stacklevel=2)
ti_prod, ti_mt = [x.strip() for x in typeinfo_name.split(':')]
_______________________________________________
CMF-checkins mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/cmf-checkins