[Zope3-checkins] CVS: Zope3/src/zope/app/fssync - classes.py:1.7 fsregistry.py:1.4
Steve Alexander
steve@cat-box.net
Fri, 6 Jun 2003 15:29:33 -0400
Update of /cvs-repository/Zope3/src/zope/app/fssync
In directory cvs.zope.org:/tmp/cvs-serv7875/src/zope/app/fssync
Modified Files:
classes.py fsregistry.py
Log Message:
Changed old-style __implements__ to new-style implements()
Also, fixed up some incorrect formatting.
=== Zope3/src/zope/app/fssync/classes.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/fssync/classes.py:1.6 Thu Jun 5 16:57:06 2003
+++ Zope3/src/zope/app/fssync/classes.py Fri Jun 6 15:29:02 2003
@@ -24,11 +24,12 @@
from zope.component.interfaces import IPresentationRequest
from zope.xmlpickle import dumps
from zope.proxy import removeAllProxies
+from zope.interface import implements
class FSAddView(object):
"""See IFSAddView."""
- __implements__ = IFSAddView
+ implements(IFSAddView)
def __init__(self, context, request):
self.context = context
@@ -105,7 +106,7 @@
class Default(ObjectEntryAdapter):
"""Default File-system representation for objects."""
- __implements__ = IObjectFile
+ implements(IObjectFile)
def __init__(self, context):
# XXX for now, remove all proxies.
@@ -129,7 +130,7 @@
class FSAddRequest(object):
"""XXX docstring???"""
- __implements__ = IPresentationRequest
+ implements(IPresentationRequest)
def getPresentationType(self):
return IFSAddView
=== Zope3/src/zope/app/fssync/fsregistry.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/fssync/fsregistry.py:1.3 Thu May 15 14:45:33 2003
+++ Zope3/src/zope/app/fssync/fsregistry.py Fri Jun 6 15:29:02 2003
@@ -20,6 +20,7 @@
from zope.app.interfaces.fssync import IGlobalFSSyncService
from zope.exceptions import DuplicationError, NotFoundError
+from zope.interface import implements
class FSRegistry(object):
"""Registry Wrapper class.
@@ -27,7 +28,7 @@
This is a maping from Class -> Serializer Factory Method.
"""
- __implements__ = IGlobalFSSyncService
+ implements(IGlobalFSSyncService)
def __init__(self):
self._class_factory_reg = {}