print to notify

This commit is contained in:
Dave Schuyler 2005-06-18 04:12:10 +00:00
parent eab64b1f94
commit fef3bab197
2 changed files with 13 additions and 7 deletions

View File

@ -32,7 +32,7 @@ class DistributedCartesianGridAI(DistributedNodeAI.DistributedNodeAI,
return 1
def getParentingRules(self):
print "calling getter"
self.notify.debug("calling getter")
rule = ("%i%s%i%s%i" % (self.startingZone, self.RuleSeparator,
self.gridSize, self.RuleSeparator,
self.gridRadius))
@ -40,7 +40,7 @@ class DistributedCartesianGridAI(DistributedNodeAI.DistributedNodeAI,
# Reparent and setLocation on av to DistributedOceanGrid
def addObjectToGrid(self, av, useZoneId=-1):
print "setting parent to grid %s" % self
self.notify.debug("setting parent to grid %s" % self)
avId = av.doId
# Create a grid parent

View File

@ -202,18 +202,24 @@ class DoInterestManager(DirectObject.DirectObject):
id = di.getUint16()
scope = di.getUint32()
expect_scope = self.getInterestScopeId(id)
print "handleInterestDoneMessage--> Received ID:%s Scope:%s"%(id,scope);
self.notify.debug(
"handleInterestDoneMessage--> Received ID:%s Scope:%s"%(id,scope))
if expect_scope == scope:
print "handleInterestDoneMessage--> Scope Match:%s Scope:%s"%(id,scope);
self.notify.debug(
"handleInterestDoneMessage--> Scope Match:%s Scope:%s"
%(id,scope))
event = self.getInterestScopeEvent(id)
if event is not None:
print "handleInterestDoneMessage--> Send Event : %s"%(event);
self.notify.debug(
"handleInterestDoneMessage--> Send Event : %s"%(event))
messenger.send(event)
else:
print "handleInterestDoneMessage--> No Event ";
self.notify.debug("handleInterestDoneMessage--> No Event ")
self._ponderRemoveFlaggedInterest(id)
else:
print "handleInterestDoneMessage--> Scope MisMatch :%s :%s"%(expect_scope,scope);
self.notify.debug(
"handleInterestDoneMessage--> Scope MisMatch :%s :%s"
%(expect_scope,scope))
assert self.printInterestsIfDebug()