[Zope3-checkins] CVS: Zope3/src/zope/publisher/tests - publication.py:1.3 views.py:1.3 xmlrpcviews.py:1.3

Viktorija Zaksiene ryzaja@codeworks.lt
Tue, 3 Jun 2003 10:32:07 -0400


Update of /cvs-repository/Zope3/src/zope/publisher/tests
In directory cvs.zope.org:/tmp/cvs-serv29899/tests

Modified Files:
	publication.py views.py xmlrpcviews.py 
Log Message:
Change __implements__ to the new style.


=== Zope3/src/zope/publisher/tests/publication.py 1.2 => 1.3 ===
--- Zope3/src/zope/publisher/tests/publication.py:1.2	Wed Dec 25 09:15:19 2002
+++ Zope3/src/zope/publisher/tests/publication.py	Tue Jun  3 10:32:07 2003
@@ -13,10 +13,11 @@
 ##############################################################################
 
 from zope.publisher.interfaces import IPublication
+from zope.interface import implements
 
 class TestPublication:
 
-    __implements__ =  IPublication
+    implements(IPublication)
 
     def afterCall(self, request):
         '''See interface IPublication'''


=== Zope3/src/zope/publisher/tests/views.py 1.2 => 1.3 ===
--- Zope3/src/zope/publisher/tests/views.py:1.2	Wed Dec 25 09:15:19 2002
+++ Zope3/src/zope/publisher/tests/views.py	Tue Jun  3 10:32:07 2003
@@ -16,7 +16,7 @@
 Revision information: $Id$
 """
 
-from zope.interface import Interface
+from zope.interface import Interface, implements
 from zope.publisher.browser import BrowserView
 from zope.publisher.interfaces.browser import IBrowserPresentation
 
@@ -27,7 +27,7 @@
 class VZMI(V1): pass
 
 class R1:
-    __implements__ = IBrowserPresentation
+    implements(IBrowserPresentation)
     def __init__(self, request): self.request = request
 
 class RZMI(R1):


=== Zope3/src/zope/publisher/tests/xmlrpcviews.py 1.2 => 1.3 ===
--- Zope3/src/zope/publisher/tests/xmlrpcviews.py:1.2	Wed Dec 25 09:15:19 2002
+++ Zope3/src/zope/publisher/tests/xmlrpcviews.py	Tue Jun  3 10:32:07 2003
@@ -16,13 +16,13 @@
 Revision information: $Id$
 """
 
-from zope.interface import Interface
+from zope.interface import Interface, implements
 from zope.publisher.interfaces.xmlrpc import IXMLRPCPublisher
 
 class IC(Interface): pass
 
 class V1:
-    __implements__ = IXMLRPCPublisher
+    implements(IXMLRPCPublisher)
 
     def __init__(self, context, request):
         self.context = context
@@ -35,7 +35,7 @@
     def __init__(self, request):
         self.request = request
 
-    __implements__ = IXMLRPCPublisher
+    implements(IXMLRPCPublisher)
 
 class RZMI(R1):
     pass