[Zope3-checkins] CVS: Zope3/src/zope/app/fssync - committer.py:1.25
fspickle.py:1.5
Jim Fulton
jim at zope.com
Fri Mar 5 17:10:14 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/fssync
In directory cvs.zope.org:/tmp/cvs-serv15449/src/zope/app/fssync
Modified Files:
committer.py fspickle.py
Log Message:
Renamed interface methods:
isImplementedByInstancesOf to implementedBy
isImplementedBy to providedBy
=== Zope3/src/zope/app/fssync/committer.py 1.24 => 1.25 ===
--- Zope3/src/zope/app/fssync/committer.py:1.24 Wed Mar 3 05:38:43 2004
+++ Zope3/src/zope/app/fssync/committer.py Fri Mar 5 17:09:06 2004
@@ -135,7 +135,7 @@
"""Helper to check a directory."""
adapter = self.getSerializer(container)
nameset = {}
- if IObjectDirectory.isImplementedBy(adapter):
+ if IObjectDirectory.providedBy(adapter):
for name, obj in adapter.contents():
nameset[name] = 1
else:
@@ -179,7 +179,7 @@
self.conflict(fspath)
obj = traverseName(container, name)
adapter = self.getSerializer(obj)
- if IObjectDirectory.isImplementedBy(adapter):
+ if IObjectDirectory.providedBy(adapter):
if flag != "removed" or os.path.exists(fspath):
self.check_dir(obj, fspath)
else:
@@ -276,7 +276,7 @@
"""Helper to synchronize a directory."""
adapter = self.getSerializer(container)
nameset = {} # name --> absolute path
- if IObjectDirectory.isImplementedBy(adapter):
+ if IObjectDirectory.providedBy(adapter):
for name, obj in adapter.contents():
nameset[name] = os.path.join(fspath, name)
else:
@@ -309,7 +309,7 @@
context=context)
obj = traverseName(container, name)
adapter = self.getSerializer(obj)
- if IObjectDirectory.isImplementedBy(adapter):
+ if IObjectDirectory.providedBy(adapter):
self.synch_dir(obj, fspath, context)
def synch_old(self, container, name, fspath, context=None):
@@ -323,7 +323,7 @@
return
obj = traverseName(container, name)
adapter = self.getSerializer(obj)
- if IObjectDirectory.isImplementedBy(adapter):
+ if IObjectDirectory.providedBy(adapter):
self.synch_dir(obj, fspath, context)
else:
if adapter.typeIdentifier() != entry.get("type"):
@@ -370,7 +370,7 @@
obj = factory()
obj = contained(obj, container, name=name)
adapter = self.getSerializer(obj)
- if IObjectFile.isImplementedBy(adapter):
+ if IObjectFile.providedBy(adapter):
data = read_file(fspath)
adapter.setBody(data)
else:
@@ -425,7 +425,7 @@
def set_item(container, name, obj, replace=False):
"""Helper to set an item in a container or mapping."""
- if IContainer.isImplementedBy(container):
+ if IContainer.providedBy(container):
if not replace:
publish(container, ObjectCreatedEvent(obj))
if replace:
=== Zope3/src/zope/app/fssync/fspickle.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/fssync/fspickle.py:1.4 Tue Mar 2 12:51:51 2004
+++ Zope3/src/zope/app/fssync/fspickle.py Fri Mar 5 17:09:06 2004
@@ -138,7 +138,7 @@
self.root = location.LocationPhysicallyLocatable(top).getRoot()
def id(self, object):
- if ILocation.isImplementedBy(object):
+ if ILocation.providedBy(object):
if location.inside(object, self.location):
return None
elif object is self.parent:
More information about the Zope3-Checkins
mailing list