[Zope3-checkins] CVS: Zope3/src/zope/app/folder - fssync.py:1.4

Jim Fulton jim at zope.com
Fri Mar 5 17:10:13 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/folder
In directory cvs.zope.org:/tmp/cvs-serv15449/src/zope/app/folder

Modified Files:
	fssync.py 
Log Message:
Renamed interface methods:

isImplementedByInstancesOf to implementedBy
  isImplementedBy            to providedBy


=== Zope3/src/zope/app/folder/fssync.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/folder/fssync.py:1.3	Wed Feb 25 18:02:25 2004
+++ Zope3/src/zope/app/folder/fssync.py	Fri Mar  5 17:09:05 2004
@@ -37,12 +37,12 @@
 
     def keys(self):
         keys = self.context.keys()
-        if ISite.isImplementedBy(self.context):
+        if ISite.providedBy(self.context):
             return list(keys) + ['++etc++site']
         return keys
 
     def get(self, key, default=None):
-        if key == '++etc++site' and ISite.isImplementedBy(self.context):
+        if key == '++etc++site' and ISite.providedBy(self.context):
             return self.context.getSiteManager()
 
         return self.context.get(key, default)
@@ -61,7 +61,7 @@
 
     def __len__(self):
         l = len(self.context)
-        if ISite.isImplementedBy(self.context):
+        if ISite.providedBy(self.context):
             l += 1
         return l
 
@@ -78,7 +78,7 @@
 
     def contents(self):
         result = super(FolderAdapter, self).contents()
-        if ISite.isImplementedBy(self.context):
+        if ISite.providedBy(self.context):
             sm = self.context.getSiteManager()
             result.append(('++etc++site', sm))
         return result




More information about the Zope3-Checkins mailing list