Added flushing to attribute caches when an typed object is deleted. This fixes isse 295, but keeping that open for a little longer to see if some other solution can be devised.

This commit is contained in:
Griatch 2013-05-14 08:44:40 +02:00
parent 82b82318d5
commit 2386b308f5

View file

@ -826,6 +826,14 @@ class TypedObject(SharedMemoryModel):
if any(("%s.%s" % (_GA(cls,"__module__"), _GA(cls,"__name__")) == typec for typec in typeclasses))))
def delete(self, *args, **kwargs):
"""
Type-level cleanup
"""
flush_attr_cache()
super(TypedObject, self).delete(*args, **kwargs)
#
# Object manipulation methods
#