no more extra schema necessary for tests here tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 18 Feb 2009 01:33:53 +0100
branchtls-sprint
changeset 749 c23169f79a3b
parent 748 eec752381926
child 750 89e997bc2bf1
no more extra schema necessary for tests here
common/test/data/entities.py
common/test/data/schema/Affaire.sql
common/test/data/schema/Note.py
common/test/data/schema/Note.sql
common/test/data/schema/Personne.sql
common/test/data/schema/Societe.sql
common/test/data/schema/relations.rel
--- a/common/test/data/entities.py	Wed Feb 18 01:32:07 2009 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-from cubicweb.entities import AnyEntity, fetch_config
-
-class Personne(AnyEntity):
-    """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 AnotherNote(AnyEntity):
-    id = 'AnotherNote'
--- a/common/test/data/schema/Affaire.sql	Wed Feb 18 01:32:07 2009 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-sujet varchar(128)
-ref   varchar(12)
--- a/common/test/data/schema/Note.py	Wed Feb 18 01:32:07 2009 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-from cubicweb.schema import format_constraint
-
-class AnotherNote(EntityType):
-    descr_format = String(meta=True, internationalizable=True,
-                                default='text/rest', constraints=[format_constraint])
-    descr = String(fulltextindexed=True,
-                   description=_('more detailed description'))
-    descr2_format = String(meta=True, internationalizable=True,
-                                default='text/rest', constraints=[format_constraint])
-    descr2 = String(fulltextindexed=True,
-                    description=_('more detailed description'))
-    
-
-class SubNote(AnotherNote):
-    __specializes_schema__ = True
-    descr3 = String()
--- a/common/test/data/schema/Note.sql	Wed Feb 18 01:32:07 2009 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-date varchar(10)
-type char(1)
-para varchar(512)
--- a/common/test/data/schema/Personne.sql	Wed Feb 18 01:32:07 2009 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-nom    ivarchar(64) NOT NULL
-prenom ivarchar(64)
-sexe   char(1) DEFAULT 'M' 
-promo  choice('bon','pasbon')
-titre  ivarchar(128)
-adel   varchar(128)
-ass    varchar(128)
-web    varchar(128)
-tel    integer
-fax    integer
-datenaiss datetime
-test   boolean 
-description text
-salary float
--- a/common/test/data/schema/Societe.sql	Wed Feb 18 01:32:07 2009 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-nom  ivarchar(64)
-web varchar(128)
-tel  integer
-fax  integer
-rncs varchar(32)
-ad1  varchar(128)
-ad2  varchar(128)
-ad3  varchar(128)
-cp   varchar(12)
-ville varchar(32)
--- a/common/test/data/schema/relations.rel	Wed Feb 18 01:32:07 2009 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-Personne travaille Societe
-Personne evaluee Note
-EUser evaluee Note
-Societe evaluee Note
-Personne concerne Affaire
-Affaire concerne Societe
-Personne evaluee Personne
-
-Note ecrit_par Personne inline CONSTRAINT E concerns P, X version_of P
-Personne connait Personne symetric
-
-Affaire liee_a Societe
-Affaire liee_a Personne