test/data/entities.py
branchtls-sprint
changeset 1473 717dea3362c0
parent 744 4da6e0f4df2a
child 1977 606923dff11b
--- a/test/data/entities.py	Fri Apr 24 15:37:51 2009 +0200
+++ b/test/data/entities.py	Fri Apr 24 15:38:11 2009 +0200
@@ -1,15 +1,15 @@
 from cubicweb.entities import AnyEntity, fetch_config
 
-class Personne(AnyEntity):
+class Societe(AnyEntity):
+    id = 'Societe'
+    fetch_attrs = ('nom',)
+
+class Personne(Societe):
     """customized class forne Person entities"""
     id = 'Personne'
     fetch_attrs, fetch_order = fetch_config(['nom', 'prenom'])
     rest_attr = 'nom'
 
 
-class Societe(AnyEntity):
-    id = 'Societe'
-    fetch_attrs = ('nom',)
-    
 class Note(AnyEntity):
     id = 'Note'