[Zope3-checkins] CVS: Zope3/src/zope/app/fssync/tests - sampleclass.py:1.3
Steve Alexander
steve@cat-box.net
Fri, 6 Jun 2003 15:28:23 -0400
Update of /cvs-repository/Zope3/src/zope/app/fssync/tests
In directory cvs.zope.org:/tmp/cvs-serv7845/src/zope/app/fssync/tests
Modified Files:
sampleclass.py
Log Message:
Changed mixed tabs/spaces to spaces.
New style implements()
=== Zope3/src/zope/app/fssync/tests/sampleclass.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/fssync/tests/sampleclass.py:1.2 Mon May 5 14:01:02 2003
+++ Zope3/src/zope/app/fssync/tests/sampleclass.py Fri Jun 6 15:28:21 2003
@@ -17,6 +17,7 @@
"""
from zope.app.interfaces.fssync import IObjectDirectory, IObjectFile
+from zope.interface import implements
class C1: "C1 Doc"
class C2: "C2 Doc"
@@ -25,7 +26,7 @@
class CDefaultAdapter:
"""Default File-system representation for object
"""
- __implements__ = IObjectFile
+ implements(IObjectFile)
def __init__(self, object):
self.context = object
@@ -41,16 +42,16 @@
def getBody(self):
return self.context.__doc__
-
+
def setBody(self):
pass
-
+
class CDirAdapter:
"""Directory Adapter
"""
- __implements__ = IObjectDirectory
-
+ implements(IObjectDirectory)
+
def __init__(self, object):
self.context = object
@@ -64,18 +65,18 @@
return "Folder Factory"
def contents(self):
- return []
+ return []
class CFileAdapter:
"""File Adapter
"""
- __implements__ = IObjectFile
+ implements(IObjectFile)
def __init__(self, object):
self.context = object
- def extra(self):
+ def extra(self):
pass
def typeIdentifier(self):
@@ -83,7 +84,7 @@
def factory(self):
return "File Factory"
-
+
def getBody(self):
return self.context.__doc__