[Zope3-checkins] CVS: Zope3/src/zope/app/dav/tests - test_propfind.py:1.7

Steve Alexander steve@cat-box.net
Fri, 6 Jun 2003 15:29:33 -0400


Update of /cvs-repository/Zope3/src/zope/app/dav/tests
In directory cvs.zope.org:/tmp/cvs-serv7875/src/zope/app/dav/tests

Modified Files:
	test_propfind.py 
Log Message:
Changed old-style __implements__ to new-style implements()

Also, fixed up some incorrect formatting.


=== Zope3/src/zope/app/dav/tests/test_propfind.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/dav/tests/test_propfind.py:1.6	Tue Jun  3 18:46:19 2003
+++ Zope3/src/zope/app/dav/tests/test_propfind.py	Fri Jun  6 15:29:02 2003
@@ -41,10 +41,11 @@
 from zope.app.dublincore.annotatableadapter import ZDCAnnotatableAdapter
 from zope.app.interfaces.annotation import IAnnotatable, IAnnotations
 from zope.app.attributeannotations import AttributeAnnotations
+from zope.interface import implements
 
 class Folder:
 
-    __implements__ = IReadContainer
+    implements(IReadContainer)
 
     def __init__(self, name, level=0):
         self.name = name
@@ -61,7 +62,7 @@
 
 class File:
 
-    __implements__ = IWriteFile
+    implements(IWriteFile)
 
     def __init__(self, name, content_type, data):
         self.name = name
@@ -73,7 +74,7 @@
 
 class FooZPT:
 
-    __implements__ = (IAnnotatable, IZPTPage)
+    implements(IAnnotatable, IZPTPage)
 
     def getSource(self):
         return 'bla bla bla'