common/mixins.py
changeset 2680 66472d85d548
parent 2613 5e19c2bb370e
child 2728 d4689ba782a4
--- a/common/mixins.py	Tue Aug 04 17:02:18 2009 +0200
+++ b/common/mixins.py	Tue Aug 04 17:11:50 2009 +0200
@@ -155,7 +155,7 @@
 
     def root(self):
         """return the root object"""
-        return self.req.eid_rset(self.path()[0]).get_entity(0, 0)
+        return self.req.entity_from_eid(self.path()[0])
 
 
 class WorkflowableMixIn(object):