Browse Source

fixed addInterest (return handle), added removeInterest

Darren Ranalli 19 years ago
parent
commit
fa8c808562
1 changed files with 4 additions and 1 deletions
  1. 4 1
      direct/src/distributed/DistributedObject.py

+ 4 - 1
direct/src/distributed/DistributedObject.py

@@ -370,7 +370,10 @@ class DistributedObject(DistributedObjectBase):
             assert self.notify.debug('doneBarrier(%s) ignored; no active barrier.' % (name))
 
     def addInterest(self, zoneId, note="", event=None):
-        self.cr.addInterest(self.getDoId(), zoneId, note, event)
+        return self.cr.addInterest(self.getDoId(), zoneId, note, event)
+
+    def removeInterest(self, handle, event=None):
+        return self.cr.removeInterest(handle, event)
 
     def b_setLocation(self, parentId, zoneId):
         self.d_setLocation(parentId, zoneId)