[Checkins] SVN: zope.component/tseaver-test_cleanup/ Normalize what the 'utility' directive passes to the context.
Tres Seaver
cvs-admin at zope.org
Tue Jun 26 23:00:57 UTC 2012
Log message for revision 127113:
Normalize what the 'utility' directive passes to the context.
- Include the 'info' argument (file, line number, column).
- Don't compute the registered interface name (the 'provideInterface'
function doest that for us).
Changed:
_U zope.component/tseaver-test_cleanup/
U zope.component/tseaver-test_cleanup/src/zope/component/zcml.py
-=-
Modified: zope.component/tseaver-test_cleanup/src/zope/component/zcml.py
===================================================================
--- zope.component/tseaver-test_cleanup/src/zope/component/zcml.py 2012-06-26 23:00:50 UTC (rev 127112)
+++ zope.component/tseaver-test_cleanup/src/zope/component/zcml.py 2012-06-26 23:00:54 UTC (rev 127113)
@@ -383,13 +383,13 @@
_context.action(
discriminator = ('utility', provides, name),
callable = handler,
- args = ('registerUtility', component, provides, name),
+ args = ('registerUtility', component, provides, name, _context.info),
kw = dict(factory=factory),
)
_context.action(
discriminator = None,
callable = provideInterface,
- args = (provides.__module__ + '.' + provides.getName(), provides)
+ args = ('', provides),
)
class IInterfaceDirective(Interface):
More information about the checkins
mailing list