[CMF-checkins] SVN: CMF/branches/1.5/CMFCore/TypesTool.py Display
offending line when warning about old typeinfo names deprecation.
Florent Guillaume
fg at nuxeo.com
Fri Jul 29 13:51:35 EDT 2005
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(':')]
More information about the CMF-checkins
mailing list