[Zope3-checkins] CVS: Zope3/src/zope/app/apidoc/ifacemodule - browser.py:1.3

Jim Fulton jim at zope.com
Fri Mar 5 17:09:56 EST 2004


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

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

isImplementedByInstancesOf to implementedBy
  isImplementedBy            to providedBy


=== Zope3/src/zope/app/apidoc/ifacemodule/browser.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/apidoc/ifacemodule/browser.py:1.2	Wed Feb 25 17:26:46 2004
+++ Zope3/src/zope/app/apidoc/ifacemodule/browser.py	Fri Mar  5 17:08:51 2004
@@ -31,7 +31,7 @@
     items = {}
     for name in iface:
         attr = iface[name]
-        if type.isImplementedBy(attr):
+        if type.providedBy(attr):
             items[name] = attr
     return items
 
@@ -101,8 +101,7 @@
         attrs = []
         for name in iface:
             attr = iface[name]
-            if not IMethod.isImplementedBy(attr) and \
-               not IField.isImplementedBy(attr):
+            if not IMethod.providedBy(attr) and not IField.providedBy(attr):
                 attrs.append(attr)
         return [{'name': attr.getName(),
                  'doc': stx2html(attr.getDoc() or '', 3)}




More information about the Zope3-Checkins mailing list