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 ...@@ -30,10 +30,10 @@ from Products.Five.browser.metaconfigure import page
def implements(_context, class_, interface): def implements(_context, class_, interface):
warnings.warn('Using <five:implements /> is deprecated. Please use the ' warnings.warn('Using <five:implements /> in %s is deprecated. Please use '
'<class class="foo.Bar">' 'the <class class="foo.Bar">'
'<implements interface="foo.interfaces.IBar" />' '<implements interface="foo.interfaces.IBar" /></class> '
'</class> directive instead.', 'directive instead.' % _context.info,
DeprecationWarning, stacklevel=2) DeprecationWarning, stacklevel=2)
for interface in interface: for interface in interface:
_context.action( _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