entities/schemaobjs.py
changeset 5239 471554b842d2
parent 5224 34e669b6fd95
child 5423 e15abfdcce38
--- a/entities/schemaobjs.py	Tue Apr 13 19:43:51 2010 +0200
+++ b/entities/schemaobjs.py	Wed Apr 14 08:49:23 2010 +0200
@@ -122,6 +122,9 @@
     def otype(self):
         return self.to_entity[0]
 
+    def yams_schema(self):
+        rschema = self._cw.vreg.schema.rschema(self.rtype.name)
+        return rschema.rdefs[(self.stype.name, self.otype.name)]
 
 class CWAttribute(CWRelation):
     __regid__ = 'CWAttribute'