equal
deleted
inserted
replaced
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): |