entities/schemaobjs.py
changeset 2594 92aad5e18405
parent 2299 85fb4b808f5b
child 3353 1003a6f3d298
equal deleted inserted replaced
2593:16d9419a4a79 2594:92aad5e18405
   110         """
   110         """
   111         if self.relation_type:
   111         if self.relation_type:
   112             return self.relation_type[0].rest_path(), {}
   112             return self.relation_type[0].rest_path(), {}
   113         return super(CWRelation, self).after_deletion_path()
   113         return super(CWRelation, self).after_deletion_path()
   114 
   114 
       
   115     @property
       
   116     def rtype(self):
       
   117         return self.relation_type[0]
       
   118 
       
   119     @property
       
   120     def stype(self):
       
   121         return self.from_entity[0]
       
   122 
       
   123     @property
       
   124     def otype(self):
       
   125         return self.to_entity[0]
       
   126 
   115 
   127 
   116 class CWAttribute(CWRelation):
   128 class CWAttribute(CWRelation):
   117     id = 'CWAttribute'
   129     id = 'CWAttribute'
   118 
   130 
   119     def dc_long_title(self):
   131     def dc_long_title(self):