[CMF-checkins] SVN: CMF/trunk/CMFCore/TypesTool.py Display offending line when warning about old typeinfo names deprecation.

Florent Guillaume fg at nuxeo.com
Fri Jul 29 13:52:02 EDT 2005


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(':')]
 



More information about the CMF-checkins mailing list