[Zope3-checkins] CVS: Zope3/src/zope/app - introspector.py:1.19

Jim Fulton cvs-admin at zope.org
Fri Nov 21 12:10:45 EST 2003


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

Modified Files:
	introspector.py 
Log Message:
Interfaces no-longer have setBases methods.


=== Zope3/src/zope/app/introspector.py 1.18 => 1.19 ===
--- Zope3/src/zope/app/introspector.py:1.18	Mon Nov  3 16:38:03 2003
+++ Zope3/src/zope/app/introspector.py	Fri Nov 21 12:10:44 2003
@@ -122,7 +122,7 @@
                 else:
                     attributes.append((desc.getName(), desc.getDoc()))
 
-            for base in interface.getBases():
+            for base in interface.__bases__:
                 bases.append(base.__module__+'.'+base.__name__)
             desc = str(interface.getDoc())
         return [Iname, bases, desc, methods, attributes]
@@ -181,7 +181,7 @@
         results = []
         iservice = getService(self.context, Interfaces)
         for id, interface in iservice.items(base=base):
-            if base in interface.getBases() and not interface.names():
+            if base in interface.__bases__ and not interface.names():
                 results.append(interface)
         results.sort()
         return tuple(results)




More information about the Zope3-Checkins mailing list