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): |