From 417e68593b6b4112cd6b06796db455f30cd1d719 Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Thu, 26 May 2005 21:22:27 +0000 Subject: [PATCH] removed distObj --- direct/src/distributed/AsyncRequest.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/direct/src/distributed/AsyncRequest.py b/direct/src/distributed/AsyncRequest.py index a1f617f915..bf8d72b84b 100755 --- a/direct/src/distributed/AsyncRequest.py +++ b/direct/src/distributed/AsyncRequest.py @@ -31,20 +31,18 @@ class AsyncRequest(DirectObject): will be called again when the new self.neededObjects is complete. You may repeat this as necessary. """ - if __debug__: notify = DirectNotifyGlobal.directNotify.newCategory('AsyncRequest') - def __init__(self, distObj, air, replyToChannelId=None, timeout=4.0): + def __init__(self, air, replyToChannelId=None, timeout=4.0): """ - distObj is any distributed object. air is the AI Respository. replyToChannelId may be an avatarId, an accountId, or a channelId. timeout is how many seconds to wait before aborting the request. """ assert self.notify.debugCall() + assert isinstance(air, ConnectionRepository) # The api to AsyncRequest has changed. #DirectObject.DirectObject.__init__(self) - self.distObj=distObj self.air=air self.replyToChannelId=replyToChannelId self.neededObjects={} @@ -67,7 +65,6 @@ class AsyncRequest(DirectObject): self.air.removeDOFromTables(i) i.delete() del self.neededObjects - del self.distObj del self.air del self.replyToChannelId #DirectObject.DirectObject.delete(self)