Commit 8677c9b8 authored by Hanno Schlichting's avatar Hanno Schlichting

Add the _context.info to the deprecation warning - being told it happens in...

Add the _context.info to the deprecation warning - being told it happens in zope.configuration doesm't help
parent 3e1a9753
......@@ -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(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment