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

Philipp von Weitershausen philikon@philikon.de
Wed, 9 Apr 2003 16:52:04 -0400


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

Modified Files:
	metaconfigure.py 
Log Message:
* introduced IXMLRepresentable interface for objects representing xml.

* introduced a new ZCML directive to register XML Schemas as interfaces
  by specifying their URI.

* changed the way interfaces are resolved in all configuration directives
  and some other places. Thus, you can now also specify the URI of an
  XML schema instead of a dotted interface name everywhere you are required
  to specify an interface name.


=== Zope3/src/zope/app/publisher/xmlrpc/metaconfigure.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/publisher/xmlrpc/metaconfigure.py:1.7	Tue Feb 11 21:17:30 2003
+++ Zope3/src/zope/app/publisher/xmlrpc/metaconfigure.py	Wed Apr  9 16:51:33 2003
@@ -30,7 +30,7 @@
 from zope.publisher.interfaces.xmlrpc import IXMLRPCPresentation
 
 from zope.app.component.metaconfigure \
-     import defaultView as _defaultView, handler
+     import defaultView as _defaultView, handler, resolveInterface
 from zope.interface import Interface
 
 
@@ -48,7 +48,7 @@
 
         # Resolve and save the component these views are for
         if for_ is not None:
-            for_ = _context.resolve(for_)
+            for_ = resolveInterface(_context, for_)
         self.for_ = for_
 
         if ((allowed_methods or allowed_interface)
@@ -59,7 +59,7 @@
                 )
 
         if allowed_interface is not None:
-            allowed_interface = _context.resolve(allowed_interface)
+            allowed_interface = resolveInterface(_context, allowed_interface)
 
         self.factory = map(_context.resolve, factory.strip().split())
         self.name = name