*** empty log message ***

This commit is contained in:
Samir Naik 2005-03-08 23:52:21 +00:00
parent a5dcfae1ce
commit 6656cd6351
2 changed files with 5 additions and 2 deletions

View File

@ -342,6 +342,8 @@ class DistributedObject(PandaObject):
self.cr.addInterest(self.getDoId(), zoneId, note, event) self.cr.addInterest(self.getDoId(), zoneId, note, event)
def setLocation(self, parentId, zoneId): def setLocation(self, parentId, zoneId):
#print "%s setLocation %s, %s" % (self.doId, parentId, zoneId)
# The store must run first so we know the old location # The store must run first so we know the old location
#self.cr.storeObjectLocation(self.doId, parentId, zoneId) #self.cr.storeObjectLocation(self.doId, parentId, zoneId)
self.__location = (parentId, zoneId) self.__location = (parentId, zoneId)

View File

@ -142,7 +142,10 @@ class DistributedObjectAI(DirectObject.DirectObject):
def setLocation(self, parentId, zoneId): def setLocation(self, parentId, zoneId):
# The store must run first so we know the old location # The store must run first so we know the old location
self.air.sendSetLocation(self, parentId, zoneId) self.air.sendSetLocation(self, parentId, zoneId)
self.__location = (parentId, zoneId)
def getLocation(self):
return self.__location
if 0: # this is untested: if 0: # this is untested:
def setLocation(self, parentId, zoneId): def setLocation(self, parentId, zoneId):
@ -150,8 +153,6 @@ class DistributedObjectAI(DirectObject.DirectObject):
self.air.storeObjectLocation(self.doId, parentId, zoneId) self.air.storeObjectLocation(self.doId, parentId, zoneId)
self.__location = (parentId, zoneId) self.__location = (parentId, zoneId)
def getLocation(self):
return self.__location
def updateRequiredFields(self, dclass, di): def updateRequiredFields(self, dclass, di):
dclass.receiveUpdateBroadcastRequired(self, di) dclass.receiveUpdateBroadcastRequired(self, di)