1.1 --- a/micropython/table.py Sun Mar 07 02:21:18 2010 +0100
1.2 +++ b/micropython/table.py Fri Mar 26 01:17:02 2010 +0100
1.3 @@ -310,6 +310,23 @@
1.4 possible.append(objname)
1.5 return possible
1.6
1.7 + def any_possible_objects(self, names):
1.8 +
1.9 + """
1.10 + Return a list of object names supporting any of the given attribute 'names'.
1.11 + """
1.12 +
1.13 + possible = []
1.14 + for objname, attributes in self.table.items():
1.15 + found = 0
1.16 + for name in names:
1.17 + if attributes.has_key(name):
1.18 + found = 1
1.19 + break
1.20 + if found:
1.21 + possible.append(objname)
1.22 + return possible
1.23 +
1.24 def as_list(self):
1.25
1.26 """