server/session.py
changeset 2680 66472d85d548
parent 2650 18aec79ec3a3
child 2764 55579275a091
--- a/server/session.py	Tue Aug 04 17:02:18 2009 +0200
+++ b/server/session.py	Tue Aug 04 17:11:50 2009 +0200
@@ -569,7 +569,7 @@
     @deprecated('use entity_from_eid(eid, etype=None)')
     def entity(self, eid):
         """return a result set for the given eid"""
-        return self.eid_rset(eid).get_entity(0, 0)
+        return self.entity_from_eid(eid)
 
 
 class ChildSession(Session):