[Zope-Checkins] SVN: Zope/trunk/src/Products/Five/fiveconfigure.py Add the _context.info to the deprecation warning - being told it happens in zope.configuration doesm't help

Hanno Schlichting hannosch at hannosch.eu
Sat Jun 12 09:36:25 EDT 2010


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(



More information about the Zope-Checkins mailing list