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

@ -221,7 +221,7 @@ class ObjectDB(TypedObject):
raise Exception(errmsg)
def __location_del(self):
"Cleably delete the location reference"
"Cleanly delete the location reference"
_SA(_GA(self, "dbobj"), "db_location", None)
_GA(_GA(self, "dbobj"), "save")(upate_fields=["db_location"])
location = property(__location_get, __location_set, __location_del)