[Zope3-checkins] CVS: Zope3/src/zope/app/rotterdam -
xmlobject.py:1.3
Jim Fulton
jim at zope.com
Fri Mar 5 17:09:48 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/rotterdam
In directory cvs.zope.org:/tmp/cvs-serv15449/src/zope/app/rotterdam
Modified Files:
xmlobject.py
Log Message:
Renamed interface methods:
isImplementedByInstancesOf to implementedBy
isImplementedBy to providedBy
=== Zope3/src/zope/app/rotterdam/xmlobject.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/rotterdam/xmlobject.py:1.2 Wed Mar 3 05:38:50 2004
+++ Zope3/src/zope/app/rotterdam/xmlobject.py Fri Mar 5 17:09:16 2004
@@ -71,7 +71,7 @@
continue
iconUrl = self.getIconUrl(item)
- if IReadContainer.isImplementedBy(item):
+ if IReadContainer.providedBy(item):
result.append(xmlEscape(
'<collection name=%s length=%s icon_url=%s/>',
name, len(item), iconUrl))
@@ -107,7 +107,7 @@
#if item == oldItem:
# continue
subItems = []
- if IReadContainer.isImplementedBy(item):
+ if IReadContainer.providedBy(item):
keys = list(item.keys())
else:
keys = []
@@ -118,7 +118,7 @@
for name in keys:
# Only include items we can traverse to
subItem = traverse(item, name, None)
- if IReadContainer.isImplementedBy(subItem):
+ if IReadContainer.providedBy(subItem):
iconUrl = self.getIconUrl(subItem)
# the test below seems to be browken with the ++etc++site case
if subItem == oldItem:
@@ -156,7 +156,7 @@
def singleBranchTree(self, root=''):
parent = getParent(self.context)
while parent is not None:
- if IReadContainer.isImplementedBy(parent):
+ if IReadContainer.providedBy(parent):
view = zapi.queryView(parent,
'singleBranchTree.xml',
self.request)
More information about the Zope3-Checkins
mailing list