equal
deleted
inserted
replaced
127 rset, entities = rcache |
127 rset, entities = rcache |
128 for idx, row in enumerate(rset.rows): |
128 for idx, row in enumerate(rset.rows): |
129 if row[0] == targeteid: |
129 if row[0] == targeteid: |
130 break |
130 break |
131 else: |
131 else: |
132 raise Exception('cache inconsistency for %s %s %s %s' % |
132 # this may occurs if the cache has been filed by a hook |
133 (eid, rtype, role, targeteid)) |
133 # after the database update |
|
134 self.debug('cache inconsistency for %s %s %s %s', eid, rtype, |
|
135 role, targeteid) |
|
136 return |
134 del rset.rows[idx] |
137 del rset.rows[idx] |
135 if isinstance(rset.description, list): # else description not set |
138 if isinstance(rset.description, list): # else description not set |
136 del rset.description[idx] |
139 del rset.description[idx] |
137 del entities[idx] |
140 del entities[idx] |
138 rset.rowcount -= 1 |
141 rset.rowcount -= 1 |