server/session.py
changeset 2680 66472d85d548
parent 2650 18aec79ec3a3
child 2764 55579275a091
equal deleted inserted replaced
2679:3fa8c0cec760 2680:66472d85d548
   567             return self.transaction_data.get(key, default)
   567             return self.transaction_data.get(key, default)
   568 
   568 
   569     @deprecated('use entity_from_eid(eid, etype=None)')
   569     @deprecated('use entity_from_eid(eid, etype=None)')
   570     def entity(self, eid):
   570     def entity(self, eid):
   571         """return a result set for the given eid"""
   571         """return a result set for the given eid"""
   572         return self.eid_rset(eid).get_entity(0, 0)
   572         return self.entity_from_eid(eid)
   573 
   573 
   574 
   574 
   575 class ChildSession(Session):
   575 class ChildSession(Session):
   576     """child (or internal) session are used to hijack the security system
   576     """child (or internal) session are used to hijack the security system
   577     """
   577     """