[Zope3-checkins] CVS: Zope3/src/zope/server/ftp/tests - demofs.py:1.3
Steve Alexander
steve@cat-box.net
Wed, 4 Jun 2003 07:13:50 -0400
Update of /cvs-repository/Zope3/src/zope/server/ftp/tests
In directory cvs.zope.org:/tmp/cvs-serv14850/src/zope/server/ftp/tests
Modified Files:
demofs.py
Log Message:
new style implements()
=== Zope3/src/zope/server/ftp/tests/demofs.py 1.2 => 1.3 ===
--- Zope3/src/zope/server/ftp/tests/demofs.py:1.2 Thu Mar 13 13:49:17 2003
+++ Zope3/src/zope/server/ftp/tests/demofs.py Wed Jun 4 07:13:49 2003
@@ -19,6 +19,7 @@
from zope.exceptions import Unauthorized
from zope.server.interfaces.ftp import IFileSystem
from zope.server.interfaces.ftp import IFileSystemAccess
+from zope.interface import implements
execute = 1
read = 2
@@ -72,7 +73,7 @@
class DemoFileSystem:
__doc__ = IFileSystem.__doc__
- __implements__ = IFileSystem
+ implements(IFileSystem)
File = File
Directory = Directory
@@ -288,7 +289,7 @@
class DemoFileSystemAccess:
__doc__ = IFileSystemAccess.__doc__
- __implements__ = IFileSystemAccess
+ implements(IFileSystemAccess)
def __init__(self, files, users):
self.files = files