[bfss, migration] fix storage migration (closes #2189206)
The storage migration intend to clean the attributes cache but in practice it
was trying to discard attribut edition. As no attribut were edited this lead to
a crash.
--- a/server/migractions.py Thu Jan 19 12:57:02 2012 +0100
+++ b/server/migractions.py Tue Feb 14 15:14:22 2012 +0100
@@ -1412,7 +1412,7 @@
getattr(entity, attribute)
storage.migrate_entity(entity, attribute)
# remove from entity cache to avoid memory exhaustion
- del entity[attribute]
+ del entity.cw_attr_cache[attribute]
pb.update()
print
source.set_storage(etype, attribute, storage)