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

Changed:
  U   CMF/branches/1.5/CMFCore/TypesTool.py

-=-
Modified: CMF/branches/1.5/CMFCore/TypesTool.py
===================================================================
--- CMF/branches/1.5/CMFCore/TypesTool.py       2005-07-29 17:41:26 UTC (rev 
37554)
+++ CMF/branches/1.5/CMFCore/TypesTool.py       2005-07-29 17:51:34 UTC (rev 
37555)
@@ -783,7 +783,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