[Zope-CVS] SVN: soap/trunk/metaconfigure.py We're using an handler function that is private and subject to change.

Jim Fulton jim at zope.com
Wed Feb 16 09:58:50 EST 2005


Log message for revision 29159:
  We're using an handler function that is private and subject to change.
  We need to find a better way to do this.  In the mean time, 
  I've updated this code to reflect recent changes.
  

Changed:
  U   soap/trunk/metaconfigure.py

-=-
Modified: soap/trunk/metaconfigure.py
===================================================================
--- soap/trunk/metaconfigure.py	2005-02-16 14:27:13 UTC (rev 29158)
+++ soap/trunk/metaconfigure.py	2005-02-16 14:58:50 UTC (rev 29159)
@@ -24,7 +24,10 @@
 from zope.app import zapi
 from zope.app.location import Location
 from zope.app.component.interface import provideInterface
+
+# XXX handler is non-public.  Should call directives instead
 from zope.app.component.metaconfigure import handler
+
 from interfaces import ISOAPRequest
 
 
@@ -71,7 +74,7 @@
         _context.action(
             discriminator = ('view', for_, name, ISOAPRequest),
             callable = handler,
-            args = (zapi.servicenames.Adapters, 'register',
+            args = ('provideAdapter',
                     (for_, ISOAPRequest), Interface, name, class_,
                     _context.info)
             )
@@ -91,7 +94,7 @@
             _context.action(
                 discriminator = ('view', for_, name, ISOAPRequest),
                 callable = handler,
-                args = (zapi.servicenames.Adapters, 'register',
+                args = ('provideAdapter',
                         (for_, ISOAPRequest), Interface, name, new_class,
                         _context.info)
                 )



More information about the Zope-CVS mailing list