[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/XMLRPC - XMLRPCRequest.py:1.1.2.4 metaConfigure.py:1.1.4.4 xmlrpc-meta.zcml:1.1.4.2

Jim Fulton jim@zope.com
Fri, 7 Jun 2002 10:41:59 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/XMLRPC
In directory cvs.zope.org:/tmp/cvs-serv12187/lib/python/Zope/Publisher/XMLRPC

Modified Files:
      Tag: Zope-3x-branch
	XMLRPCRequest.py metaConfigure.py xmlrpc-meta.zcml 
Log Message:
Merging in Zope3InWonderland-branch, which implemented the following
proposals (see
http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/OldProposals): 
- RenameAllowToRequire

- GroupClassRelatedDirectivesInClassDirective

- ViewInterfaceAndSimplification

- ConsistentUseOfSpacesAsDelimitersInZCMLAttributes

- TwoArgumentViewConstructors

- ImplementsInZCML

- SimpleViewCreationInZCML

- RemoveGetView

- ReplaceProtectWithAllow

- ViewMethodsAsViews

- MergeProtectionAndComponentDefinitions

There were also various security fixes resulting of better integration
of security with components.


=== Zope3/lib/python/Zope/Publisher/XMLRPC/XMLRPCRequest.py 1.1.2.3 => 1.1.2.4 ===
     __implements__ = HTTPRequest.__implements__
 
-    # _viewtype is overridden from the BaseRequest 
+    # _presentation_type is overridden from the BaseRequest 
     # to implement IXMLRPCPublisher
-    _viewtype = IXMLRPCPublisher
+    _presentation_type = IXMLRPCPublisher
 
 
     _args = ()


=== Zope3/lib/python/Zope/Publisher/XMLRPC/metaConfigure.py 1.1.4.3 => 1.1.4.4 ===
 $Id$
 """
-from Zope.ComponentArchitecture.metaConfigure import handler
-from Zope.Configuration.Action import Action
-from IXMLRPCPublisher import IXMLRPCPublisher
-
+from Zope.App.ComponentArchitecture.metaConfigure import view as _view
     
-def view(_context, name, factory, for_=None, layer=''):
-    if for_ is not None:
-        for_ = _context.resolve(for_)
-    factory = map(_context.resolve, factory.split(' '))
-
-    return [
-        Action(
-            discriminator = ('view', for_, name, IXMLRPCPublisher, layer),
-            callable = handler,
-            args = ('Views', 'provideView', for_, name, IXMLRPCPublisher,
-factory, layer),             )
-        ]
+def view(_context, **__kw):
+    return _view(_context,
+                 type='Zope.Publisher.XMLRPC.IXMLRPCPublisher.',
+                 **__kw)


=== Zope3/lib/python/Zope/Publisher/XMLRPC/xmlrpc-meta.zcml 1.1.4.1 => 1.1.4.2 ===
   <!-- Zope.Publisher.XMLRPC -->
   <directives namespace="http://namespaces.zope.org/xmlrpc">
-    <directive name="view" attributes="factory, name, for"
+    <directive name="view" attributes="factory name for"
        handler="Zope.Publisher.XMLRPC.metaConfigure.view" />
   </directives>