[Zope3-checkins] CVS: Zope3/src/zope/app/publisher/xmlrpc - metaconfigure.py:1.18

Jim Fulton jim at zope.com
Mon Mar 15 15:42:19 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/publisher/xmlrpc
In directory cvs.zope.org:/tmp/cvs-serv3703/src/zope/app/publisher/xmlrpc

Modified Files:
	metaconfigure.py 
Log Message:
Added support for multi-views, mainly to be consistent with the new
registration apis.  (This isn't a new feature until we have more
tests.)


=== Zope3/src/zope/app/publisher/xmlrpc/metaconfigure.py 1.17 => 1.18 ===
--- Zope3/src/zope/app/publisher/xmlrpc/metaconfigure.py:1.17	Fri Mar  5 10:55:52 2004
+++ Zope3/src/zope/app/publisher/xmlrpc/metaconfigure.py	Mon Mar 15 15:42:19 2004
@@ -70,18 +70,19 @@
 
     # Register the new view.
     _context.action(
-        discriminator = ('view', for_, name, IXMLRPCRequest),
+        discriminator = ('view', tuple(for_), name, IXMLRPCRequest),
         callable = handler,
-        args = (Presentation, 'provideView', for_, name,
-                IXMLRPCRequest, [class_]) )
+        args = (Presentation, 'provideAdapter', IXMLRPCRequest, class_,
+                name, for_) )
 
     # Register the used interfaces with the interface service
-    if for_ is not None:
-        _context.action(
-            discriminator = None,
-            callable = provideInterface,
-            args = (for_.__module__+'.'+for_.getName(), for_)
-            )
+    for iface in for_:
+        if iface is not None:
+            _context.action(
+                discriminator = None,
+                callable = provideInterface,
+                args = ('', iface)
+                )
         
 
 def defaultView(_context, name, for_=None):




More information about the Zope3-Checkins mailing list