DoCollectionManager

Inheritance:

Methods of DoCollectionManager:

__init__
def __init__(self)

Undocumented function.

addDOToTables
def addDOToTables(self, do, location=None, ownerView=False)

Undocumented function.

changeDOZoneInTables
def changeDOZoneInTables(self, do, newParentId, newZoneId, oldParentId, oldZoneId)

Undocumented function.

countObjects
def countObjects(self, classType)

Counts the number of objects of the given type in the repository (for testing purposes)

deleteDistributedObjects
def deleteDistributedObjects(self)

Undocumented function.

deleteObjectLocation
def deleteObjectLocation(self, objId, parentId, zoneId)

Undocumented function.

doFind
def doFind(self, str)

Returns list of distributed objects with matching str in value.

doFindAll
def doFindAll(self, str)

Returns list of distributed objects with matching str in value.

findAnyOfType
def findAnyOfType(self, type)

Undocumented function.

getAllOfType
def getAllOfType(self, type)

Undocumented function.

getDo
def getDo(self, doId)

Undocumented function.

getDoHierarchy
def getDoHierarchy(self)

Undocumented function.

getDoIdList
def getDoIdList(self, parentId, zoneId=None, classType=None)

parentId is any distributed object id. zoneId is a uint32, defaults to None (all zones). Try zone 2 if you're not sure which zone to use (0 is a bad/null zone and 1 has had reserved use in the past as a no messages zone, while 2 has traditionally been a global, uber, misc stuff zone). dclassType is a distributed class type filter, defaults to None (no filter).
If dclassName is None then all objects in the zone are returned; otherwise the list is filtered to only include objects of that type.

getDoList
def getDoList(self, parentId, zoneId=None, classType=None)

parentId is any distributed object id. zoneId is a uint32, defaults to None (all zones). Try zone 2 if you're not sure which zone to use (0 is a bad/null zone and 1 has had reserved use in the past as a no messages zone, while 2 has traditionally been a global, uber, misc stuff zone). dclassType is a distributed class type filter, defaults to None (no filter).
If dclassName is None then all objects in the zone are returned; otherwise the list is filtered to only include objects of that type.

getDoTable
def getDoTable(self, ownerView)

Undocumented function.

getObjectsInZone
def getObjectsInZone(self, location)

call this to get a dict of doId:distObj for a zone. Creates a shallow copy, so you can do whatever you want with the dict.

getObjectsOfClassInZone
def getObjectsOfClassInZone(self, location, objClass)

returns dict of doId:object for a zone, containing all objects that inherit from 'class'. returned dict is safely mutable.

getOwnerView
def getOwnerView(self, doId)

Undocumented function.

handleObjectLocation
def handleObjectLocation(self, di)

Undocumented function.

handleSetLocation
def handleSetLocation(self, di)

Undocumented function.

isValidLocationTuple
def isValidLocationTuple(self, location)

Undocumented function.

removeDOFromTables
def removeDOFromTables(self, do)

Undocumented function.

storeObjectLocation
def storeObjectLocation(self, doId, parentId, zoneId)

Undocumented function.