server/session.py
branchstable
changeset 2781 4e1ad9d6a3e7
parent 2764 55579275a091
child 2783 493f527aed1e
child 2874 acdd8d8c2cff
equal deleted inserted replaced
2780:ad1dfc3855b0 2781:4e1ad9d6a3e7
   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):