Made sure Attributes get dereferenced correctly.

This commit is contained in:
Griatch 2014-05-15 20:25:09 +02:00
parent 5e4af3f851
commit bc80132229

View file

@ -292,8 +292,9 @@ class WeakSharedMemoryModelBase(SharedMemoryModelBase):
Uses a WeakValue dictionary for caching instead of a regular one
"""
def _prepare(cls):
cls.__instance_cache__ = WeakValueDictionary()
super(WeakSharedMemoryModelBase, cls)._prepare()
cls.__instance_cache__ = WeakValueDictionary()
cls._idmapper_recache_protection = False
class WeakSharedMemoryModel(SharedMemoryModel):
"""