setting parentId

This commit is contained in:
Dave Schuyler 2005-06-08 23:28:43 +00:00
parent 7080e735ef
commit 94f2808cb9

View File

@ -154,6 +154,7 @@ class DistributedObjectAI(DirectObject.DirectObject):
oldZoneId = self.zoneId oldZoneId = self.zoneId
if ((oldParentId != parentId) or if ((oldParentId != parentId) or
(oldZoneId != zoneId)): (oldZoneId != zoneId)):
#print "%s location is now %s, %s (%s)"%(self.doId, parentId, zoneId, self)
self.zoneId = zoneId self.zoneId = zoneId
self.parentId = parentId self.parentId = parentId
self.air.changeDOZoneInTables(self, parentId, zoneId, oldParentId, oldZoneId) self.air.changeDOZoneInTables(self, parentId, zoneId, oldParentId, oldZoneId)
@ -355,8 +356,7 @@ class DistributedObjectAI(DirectObject.DirectObject):
other networked info in this function. other networked info in this function.
""" """
assert self.notify.debugStateCall(self) assert self.notify.debugStateCall(self)
# we don't always have a parentId, e.g. DistributedAvatarManagerAI self.air.storeObjectLocation(self.doId, self.parentId, self.zoneId)
#self.air.storeObjectLocation(self.doId, self.parentId, self.zoneId)
if wantOtpServer: if wantOtpServer:
def generateInit(self, repository=None): def generateInit(self, repository=None):