[entity] drop redundant cache update
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Fri, 23 Nov 2012 17:12:58 +0100
changeset 8621 038d67f42061
parent 8620 61c4bdd70dd8
child 8622 db988713459d
[entity] drop redundant cache update This ``cw_attr_cache`` update is redundant, ``_cw_update_attr_cache`` already do this step.
entity.py
--- a/entity.py	Mon Dec 03 13:22:10 2012 +0100
+++ b/entity.py	Fri Nov 23 17:12:58 2012 +0100
@@ -537,7 +537,6 @@
             rql = 'INSERT %s X' % (cls.__regid__)
         created = execute(rql, qargs).get_entity(0, 0)
         created._cw_update_attr_cache(attrcache)
-        created.cw_attr_cache.update(attrcache)
         cls._cw_handle_pending_relations(created.eid, pendingrels, execute)
         return created