return relation property using rdef.get
authorSandrine Ribeau <sandrine.ribeau@logilab.fr>
Mon, 07 Dec 2009 06:51:33 -0800
changeset 4006 c89be0bdf943
parent 4005 dee7af82beff
child 4007 91d11fda4aa0
return relation property using rdef.get
server/session.py
--- a/server/session.py	Mon Dec 07 06:45:51 2009 -0800
+++ b/server/session.py	Mon Dec 07 06:51:33 2009 -0800
@@ -242,7 +242,8 @@
         rschema = self.repo.schema[rtype]
         subjtype = self.describe(eidfrom)[0]
         objtype = self.describe(eidto)[0]
-        return rschema.rproperty(subjtype, objtype, rprop)
+        rdef = rschema.rdef(subjtype, objtype)
+        return rdef.get(rprop)
 
     # connection management ###################################################