From ace98d1572ae53c068da02ccb39f64ce039c105d Mon Sep 17 00:00:00 2001 From: kestred Date: Fri, 14 Feb 2014 14:26:07 -0700 Subject: [PATCH] Bugfix: Missing import dependencies for AstronInternalRepository.py and ClientRepository.py --- direct/src/distributed/CRDataCache.py | 5 +++++ direct/src/distributed/DistributedObjectBase.py | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/direct/src/distributed/CRDataCache.py b/direct/src/distributed/CRDataCache.py index 835378d8da..3cfad31136 100755 --- a/direct/src/distributed/CRDataCache.py +++ b/direct/src/distributed/CRDataCache.py @@ -1,5 +1,10 @@ from direct.distributed.CachedDOData import CachedDOData +# This has to be imported for __builtin__.config +from direct.showbase import ShowBase + +__all__ = ["CRDataCache"] + class CRDataCache: # Stores cached data for DistributedObjects between instantiations on the client diff --git a/direct/src/distributed/DistributedObjectBase.py b/direct/src/distributed/DistributedObjectBase.py index 15c8ee1b7e..ba1d8a21bc 100755 --- a/direct/src/distributed/DistributedObjectBase.py +++ b/direct/src/distributed/DistributedObjectBase.py @@ -1,6 +1,6 @@ from direct.showbase.DirectObject import DirectObject -#from direct.directnotify.DirectNotifyGlobal import directNotify +from direct.directnotify import DirectNotifyGlobal class DistributedObjectBase(DirectObject): """ @@ -8,7 +8,7 @@ class DistributedObjectBase(DirectObject): (i.e. distributed) objects. These will usually (always?) have a dclass entry in a *.dc file. """ - notify = directNotify.newCategory("DistributedObjectBase") + notify = DirectNotifyGlobal.directNotify.newCategory("DistributedObjectBase") def __init__(self, cr): assert self.notify.debugStateCall(self)