rset.py
changeset 4150 2835482b8daf
parent 4023 eae23c40627a
child 4252 6c4f109c2b03
equal deleted inserted replaced
4149:ecde9f78a080 4150:2835482b8daf
   324                 clear_cache(rset, 'get_entity')
   324                 clear_cache(rset, 'get_entity')
   325             # we also have to fix/remove from the request entity cache entities
   325             # we also have to fix/remove from the request entity cache entities
   326             # which get a wrong rset reference by this limit call
   326             # which get a wrong rset reference by this limit call
   327             for entity in self.req.cached_entities():
   327             for entity in self.req.cached_entities():
   328                 if entity.cw_rset is self:
   328                 if entity.cw_rset is self:
   329                     if offset <= entity.row < stop:
   329                     if offset <= entity.cw_row < stop:
   330                         entity.row = entity.row - offset
   330                         entity.cw_row = entity.cw_row - offset
   331                     else:
   331                     else:
   332                         self.req.drop_entity_cache(entity.eid)
   332                         self.req.drop_entity_cache(entity.eid)
   333         else:
   333         else:
   334             rset = self.copy(rows, descr)
   334             rset = self.copy(rows, descr)
   335             if not offset:
   335             if not offset: