Log message for revision 37556:
  Display offending line when warning about old typeinfo names deprecation.
  

Changed:
  U   CMF/trunk/CMFCore/TypesTool.py

-=-
Modified: CMF/trunk/CMFCore/TypesTool.py
===================================================================
--- CMF/trunk/CMFCore/TypesTool.py      2005-07-29 17:51:34 UTC (rev 37555)
+++ CMF/trunk/CMFCore/TypesTool.py      2005-07-29 17:52:01 UTC (rev 37556)
@@ -727,7 +727,8 @@
                 # 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 1.7', DeprecationWarning)
+                     'spelling will disappear in CMF 1.7', 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

Reply via email to