From 24cfaaea3f520a6e06b57a7c3774c76f40441987 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Sat, 17 Dec 2005 01:48:51 +0000 Subject: [PATCH] allow subclasses to override disable-failed logging --- direct/src/distributed/ClientRepository.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/direct/src/distributed/ClientRepository.py b/direct/src/distributed/ClientRepository.py index 8b80f56af5..ac085dae26 100644 --- a/direct/src/distributed/ClientRepository.py +++ b/direct/src/distributed/ClientRepository.py @@ -430,10 +430,13 @@ class ClientRepository(ConnectionRepository): else: distObj.deleteOrDelay() else: - ClientRepository.notify.warning( - "Disable failed. DistObj " - + str(doId) + - " is not in dictionary, ownerView=%s" % ownerView) + self._logFailedDisable(doId, ownerView) + + def _logFailedDisable(self, doId, ownerView): + ClientRepository.notify.warning( + "Disable failed. DistObj " + + str(doId) + + " is not in dictionary, ownerView=%s" % ownerView) def handleDelete(self, di): # overridden by ToontownClientRepository