Commit 6b646873 authored by Jim Fulton's avatar Jim Fulton

Fixed bug in Interface names and namesAndDescription methods that

caused attributes to be missed with more than one level of inheritence.
parent 6b2833d9
......@@ -14,7 +14,7 @@
"""Interface object implementation
Revision information:
$Id: _InterfaceClass.py,v 1.3 2002/06/10 16:47:38 chrism Exp $
$Id: _InterfaceClass.py,v 1.4 2002/06/10 20:00:42 jim Exp $
"""
from inspect import currentframe
......@@ -131,7 +131,7 @@ class Interface(Element):
for name in self.__attrs.keys():
r[name] = 1
for base in self.__bases__:
for name in base.names():
for name in base.names(all):
r[name] = 1
return r.keys()
......@@ -146,7 +146,7 @@ class Interface(Element):
r[name] = d
for base in self.__bases__:
for name, d in base.namesAndDescriptions():
for name, d in base.namesAndDescriptions(all):
if not r.has_key(name):
r[name] = d
......
......@@ -128,7 +128,10 @@ class _I1(Interface):
def f11(): pass
def f12(): pass
class _I2(_I1):
class __I1(_I1): pass
class ___I1(__I1): pass
class _I2(___I1):
def f21(): pass
def f22(): pass
def f23(): pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment