server/test/datacomputed/migratedapp/schema.py
changeset 9969 0f64ef873f7a
parent 9964 f4a3ee05cf9d
child 9971 5e44dd9dde6b
--- a/server/test/datacomputed/migratedapp/schema.py	Tue Sep 16 15:28:35 2014 +0200
+++ b/server/test/datacomputed/migratedapp/schema.py	Thu Aug 28 18:31:18 2014 +0200
@@ -16,7 +16,8 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 
-from yams.buildobjs import EntityType, RelationDefinition, ComputedRelation
+from yams.buildobjs import (EntityType, RelationDefinition, ComputedRelation,
+                            Int, Float)
 
 
 class Employee(EntityType):
@@ -38,11 +39,11 @@
 
 
 class Company(EntityType):
-    pass
+    score = Float(formula='Any AVG(NN) WHERE X employees E, N concerns E, N note NN')
 
 
 class Note(EntityType):
-    pass
+    note = Int()
 
 
 class concerns(RelationDefinition):