[Zope3-checkins] CVS: Zope3/src/zope/app/publication - httpfactory.py:1.4 traversers.py:1.6

Steve Alexander steve@cat-box.net
Fri, 6 Jun 2003 16:26:01 -0400


Update of /cvs-repository/Zope3/src/zope/app/publication
In directory cvs.zope.org:/tmp/cvs-serv16177/src/zope/app/publication

Modified Files:
	httpfactory.py traversers.py 
Log Message:
changed to use new interface declarations and api


=== Zope3/src/zope/app/publication/httpfactory.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/publication/httpfactory.py:1.3	Fri Apr 18 18:12:27 2003
+++ Zope3/src/zope/app/publication/httpfactory.py	Fri Jun  6 16:25:30 2003
@@ -16,7 +16,7 @@
 $Id$
 """
 
-from zope.interface import moduleProvides
+from zope.interface import moduleProvides, implements
 from zope.publisher.http import HTTPRequest
 from zope.publisher.browser import BrowserRequest
 from zope.publisher.xmlrpc import XMLRPCRequest
@@ -37,7 +37,7 @@
 
 class HTTPPublicationRequestFactory:
 
-    __implements__ = IPublicationRequestFactory
+    implements(IPublicationRequestFactory)
 
     def __init__(self, db):
         'See IRequestFactory'


=== Zope3/src/zope/app/publication/traversers.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/publication/traversers.py:1.5	Mon Jun  2 07:05:15 2003
+++ Zope3/src/zope/app/publication/traversers.py	Fri Jun  6 16:25:30 2003
@@ -15,7 +15,7 @@
 
 __metaclass__ = type
 
-from zope.interface import providedBy
+from zope.interface import providedBy, implements
 from zope.publisher.interfaces import Unauthorized, NotFound
 from zope.publisher.interfaces.browser import IBrowserPublisher
 from zope.publisher.interfaces.xmlrpc import IXMLRPCPublisher
@@ -24,7 +24,7 @@
 class SimpleComponentTraverser:
     """Browser traverser for simple components that can only traverse to views
     """
-    __implements__ = IBrowserPublisher, IXMLRPCPublisher
+    implements(IBrowserPublisher, IXMLRPCPublisher)
 
     def __init__(self, context, request):
         self.context = context
@@ -71,7 +71,7 @@
 class TestTraverser:
     "Bobo-style traverser, mostly useful for testing"
 
-    __implements__ = IBrowserPublisher
+    implements(IBrowserPublisher)
 
     def __init__(self, context, request):
         self.context = context