Made flush_cache work correctly on idmapper; added _idmapper_cache_flush_safe variable for 'securing' objects from cache cleanups. Nothing using this system yet.

This commit is contained in:
Griatch 2014-05-15 09:51:24 +02:00
parent b473feec06
commit a617924fb0
3 changed files with 25 additions and 25 deletions

View file

@ -719,7 +719,7 @@ class TypedObject(SharedMemoryModel):
# lock handler self.locks
def __init__(self, *args, **kwargs):
"We must initialize the parent first - important!"
super(SharedMemoryModel, self).__init__(*args, **kwargs)
super(TypedObject, self).__init__(*args, **kwargs)
#SharedMemoryModel.__init__(self, *args, **kwargs)
_SA(self, "dbobj", self) # this allows for self-reference
_SA(self, "locks", LazyLoadHandler(self, "locks", LockHandler))