[Zope3-checkins] CVS: Zope3/src/zope/app/component - metaconfigure.py:1.41

Jim Fulton jim at zope.com
Fri Apr 23 07:38:59 EDT 2004


Update of /cvs-repository/Zope3/src/zope/app/component
In directory cvs.zope.org:/tmp/cvs-serv22811/src/zope/app/component

Modified Files:
	metaconfigure.py 
Log Message:
Fixed a bug in registering the provided interface and removed some
code for computing interface ids, since that is done by the
registration machinery anyway.


=== Zope3/src/zope/app/component/metaconfigure.py 1.40 => 1.41 ===
--- Zope3/src/zope/app/component/metaconfigure.py:1.40	Thu Apr 15 09:25:03 2004
+++ Zope3/src/zope/app/component/metaconfigure.py	Fri Apr 23 07:38:58 2004
@@ -321,16 +321,18 @@
         args = (permission, Presentation, 'provideAdapter',
                 type, factory, name, for_, provides, layer, _context.info),
         )
+    if type is not None:
+        _context.action(
+            discriminator = None,
+            callable = provideInterface,
+            args = ('', type)
+            )
+        
     _context.action(
         discriminator = None,
         callable = provideInterface,
-        args = (type.__module__+'.'+type.__name__, type)
-               )
-    _context.action(
-        discriminator = None,
-        callable = provideInterface,
-        args = (provides.__module__+'.'+provides.__name__, type)
-               )
+        args = ('', provides)
+        )
 
     if for_ is not None:
         for iface in for_:




More information about the Zope3-Checkins mailing list