Log message for revision 113395: Add the _context.info to the deprecation warning - being told it happens in zope.configuration doesm't help
Changed: U Zope/trunk/src/Products/Five/fiveconfigure.py -=- Modified: Zope/trunk/src/Products/Five/fiveconfigure.py =================================================================== --- Zope/trunk/src/Products/Five/fiveconfigure.py 2010-06-12 11:51:07 UTC (rev 113394) +++ Zope/trunk/src/Products/Five/fiveconfigure.py 2010-06-12 13:36:25 UTC (rev 113395) @@ -30,10 +30,10 @@ def implements(_context, class_, interface): - warnings.warn('Using <five:implements /> is deprecated. Please use the ' - '<class class="foo.Bar">' - '<implements interface="foo.interfaces.IBar" />' - '</class> directive instead.', + warnings.warn('Using <five:implements /> in %s is deprecated. Please use ' + 'the <class class="foo.Bar">' + '<implements interface="foo.interfaces.IBar" /></class> ' + 'directive instead.' % _context.info, DeprecationWarning, stacklevel=2) for interface in interface: _context.action( _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org https://mail.zope.org/mailman/listinfo/zope-checkins