Follow PEP-0249 for Transaction and backends

issue4949
review19781002
This commit is contained in:
Nicolas Évrard committed 2016-03-03 21:54:49 +01:00
1 parent a0deec726f
commit f7fa6d1b68
1 file changed
+2 -2
+2 -2
View File
@@ -136,7 +136,7 @@ class PartyRelationAll(PartyRelation, ModelView):
local_cache.clear()
# Clean cursor cache
for cache in Transaction().cursor.cache.itervalues():
for cache in Transaction().cache.itervalues():
if cls.__name__ in cache:
for record in all_records:
for record_id in (record.id, record.reverse_id):
@@ -177,7 +177,7 @@ class PartyRelationAll(PartyRelation, ModelView):
Transaction().counter += 1
# Clean cursor cache
for cache in Transaction().cursor.cache.values():
for cache in Transaction().cache.values():
for cache in (cache, cache.get('_language_cache', {}).values()):
if cls.__name__ in cache:
for record in relations: