Browse Source

allow subclasses to override disable-failed logging

Darren Ranalli 20 years ago
parent
commit
24cfaaea3f
1 changed files with 7 additions and 4 deletions
  1. 7 4
      direct/src/distributed/ClientRepository.py

+ 7 - 4
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