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

Jim Fulton cvs-admin at zope.org
Fri Nov 21 12:12:55 EST 2003


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

Modified Files:
	metaconfigure.py 
Log Message:
Views must now be registered for request rather than presentation
types.


=== Zope3/src/zope/app/publisher/xmlrpc/metaconfigure.py 1.15 => 1.16 ===
--- Zope3/src/zope/app/publisher/xmlrpc/metaconfigure.py:1.15	Sun Aug 17 02:07:39 2003
+++ Zope3/src/zope/app/publisher/xmlrpc/metaconfigure.py	Fri Nov 21 12:12:24 2003
@@ -15,10 +15,12 @@
 
 $Id$
 """
+
+from zope.component.servicenames import Presentation
 from zope.app.component.metaconfigure import handler
 from zope.app.services.servicenames import Interfaces
 from zope.configuration.exceptions import ConfigurationError
-from zope.publisher.interfaces.xmlrpc import IXMLRPCPresentation
+from zope.publisher.interfaces.xmlrpc import IXMLRPCRequest
 from zope.security.checker import CheckerPublic, Checker
 
 
@@ -68,10 +70,10 @@
 
     # Register the new view.
     _context.action(
-        discriminator = ('view', for_, name, IXMLRPCPresentation),
+        discriminator = ('view', for_, name, IXMLRPCRequest),
         callable = handler,
-        args = ('Views', 'provideView', for_, name,
-                IXMLRPCPresentation, [class_]) )
+        args = (Presentation, 'provideView', for_, name,
+                IXMLRPCRequest, [class_]) )
 
     # Register the used interfaces with the interface service
     if for_ is not None:
@@ -86,7 +88,7 @@
 def defaultView(_context, name, for_=None):
     """Declare the view having the passed name as the default view."""
     _context.action(
-        discriminator = ('defaultViewName', for_, IXMLRPCPresentation, name),
+        discriminator = ('defaultViewName', for_, IXMLRPCRequest, name),
         callable = handler,
-        args = ('Views', 'setDefaultViewName', for_, IXMLRPCPresentation, name)
+        args = (Presentation, 'setDefaultViewName', for_, IXMLRPCRequest, name)
         )




More information about the Zope3-Checkins mailing list