From 8677c9b87bc61e7943564f184ad9e40288126735 Mon Sep 17 00:00:00 2001
From: Hanno Schlichting <hanno@hannosch.eu>
Date: Sat, 12 Jun 2010 13:36:25 +0000
Subject: [PATCH] Add the _context.info to the deprecation warning - being told
 it happens in zope.configuration doesm't help

---
 src/Products/Five/fiveconfigure.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/Products/Five/fiveconfigure.py b/src/Products/Five/fiveconfigure.py
index 3e52f7572..8be9c2fb2 100644
--- a/src/Products/Five/fiveconfigure.py
+++ b/src/Products/Five/fiveconfigure.py
@@ -30,10 +30,10 @@ from Products.Five.browser.metaconfigure import page
 
 
 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(
-- 
2.30.9