server/session.py
changeset 2783 493f527aed1e
parent 2778 3f6dfc312760
parent 2781 4e1ad9d6a3e7
child 2786 971d7c545505
equal deleted inserted replaced
2779:1ba89b590d0c 2783:493f527aed1e
   112     def _update_entity_rel_cache_add(self, eid, rtype, role, targeteid):
   112     def _update_entity_rel_cache_add(self, eid, rtype, role, targeteid):
   113         rcache = self._rel_cache(eid, rtype, role)
   113         rcache = self._rel_cache(eid, rtype, role)
   114         if rcache is not None:
   114         if rcache is not None:
   115             rset, entities = rcache
   115             rset, entities = rcache
   116             rset.rows.append([targeteid])
   116             rset.rows.append([targeteid])
   117             if isinstance(rset.description, list): # else description not set
   117             if not isinstance(rset.description, list): # else description not set
   118                 rset.description.append([self.describe(targeteid)[0]])
   118                 rset.description = list(rset.description)
       
   119             rset.description.append([self.describe(targeteid)[0]])
   119             rset.rowcount += 1
   120             rset.rowcount += 1
   120             targetentity = self.entity_from_eid(targeteid)
   121             targetentity = self.entity_from_eid(targeteid)
   121             entities.append(targetentity)
   122             entities.append(targetentity)
   122 
   123 
   123     def _update_entity_rel_cache_del(self, eid, rtype, role, targeteid):
   124     def _update_entity_rel_cache_del(self, eid, rtype, role, targeteid):