server/session.py
branchstable
changeset 5014 96bb4e7e3348
parent 4992 398cc8b39aec
child 5046 d010f749c21d
equal deleted inserted replaced
5013:ad91f93bbb93 5014:96bb4e7e3348
   589         except KeyError:
   589         except KeyError:
   590             self.transaction_data['ecache'] = ecache = {}
   590             self.transaction_data['ecache'] = ecache = {}
   591             ecache[entity.eid] = entity
   591             ecache[entity.eid] = entity
   592 
   592 
   593     def entity_cache(self, eid):
   593     def entity_cache(self, eid):
   594         try:
   594         return self.transaction_data['ecache'][eid]
   595             return self.transaction_data['ecache'][eid]
       
   596         except:
       
   597             raise
       
   598 
   595 
   599     def cached_entities(self):
   596     def cached_entities(self):
   600         return self.transaction_data.get('ecache', {}).values()
   597         return self.transaction_data.get('ecache', {}).values()
   601 
   598 
   602     def drop_entity_cache(self, eid=None):
   599     def drop_entity_cache(self, eid=None):