added getOwnerViewDoList, getOwnerViewDoIdList

This commit is contained in:
Darren Ranalli 2005-12-14 01:49:33 +00:00
parent aa20bc165d
commit 8d01e31524

View File

@ -111,6 +111,22 @@ class DoCollectionManager:
r = a
return r
def getOwnerViewDoList(self, classType):
assert self.hasOwnerView()
l = []
for obj in self.doId2ownerView.values():
if isinstance(obj, classType):
l.append(obj)
return l
def getOwnerViewDoIdList(self, classType):
assert self.hasOwnerView()
l = []
for doId, obj in self.doId2ownerView.items():
if isinstance(obj, classType):
l.append(doId)
return l
def countObjects(self, classType):
"""
Counts the number of objects of the given type in the