[Checkins] SVN: zope.component/tseaver-test_cleanup/ Normalize / fix registration of interfaces in 'resource' directive.
Tres Seaver
cvs-admin at zope.org
Tue Jun 26 23:01:29 UTC 2012
Log message for revision 127121:
Normalize / fix registration of interfaces in 'resource' directive.
Skip generating the dotted name: 'provideInterface' does that for us.
Note that the directive failed to register the 'provides' interface, which
was mostly latent due to the default (Interface).
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:01:22 UTC (rev 127120)
+++ zope.component/tseaver-test_cleanup/src/zope/component/zcml.py 2012-06-26 23:01:26 UTC (rev 127121)
@@ -627,15 +627,12 @@
discriminator = ('resource', name, type, provides),
callable = handler,
args = ('registerAdapter',
- factory, (type,), provides, name, _context.info),
- )
+ factory, (type,), provides, name, _context.info))
_context.action(
discriminator = None,
callable = provideInterface,
- args = (type.__module__ + '.' + type.__name__, type)
- )
+ args = ('', type))
_context.action(
discriminator = None,
callable = provideInterface,
- args = (provides.__module__ + '.' + provides.__name__, type)
- )
+ args = ('', provides))
More information about the checkins
mailing list