rset.py
changeset 10997 da712d3f0601
parent 10926 f9927717f493
equal deleted inserted replaced
10996:dc572d116731 10997:da712d3f0601
   481         # return cached entity if exists. This also avoids potential recursion
   481         # return cached entity if exists. This also avoids potential recursion
   482         # XXX should we consider updating a cached entity with possible
   482         # XXX should we consider updating a cached entity with possible
   483         #     new attributes found in this resultset ?
   483         #     new attributes found in this resultset ?
   484         try:
   484         try:
   485             entity = req.entity_cache(eid)
   485             entity = req.entity_cache(eid)
   486             entity._cw = req
       
   487         except KeyError:
   486         except KeyError:
   488             pass
   487             pass
   489         else:
   488         else:
   490             if entity.cw_rset is None:
   489             if entity.cw_rset is None:
   491                 # entity has no rset set, this means entity has been created by
   490                 # entity has no rset set, this means entity has been created by