author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Fri, 25 Sep 2009 11:57:31 +0200 | |
changeset 3484 | 52e6c8d62ac6 |
parent 3134 | 3cda74b5534c |
child 3543 | ed152fe5aa8b |
permissions | -rw-r--r-- |
2592
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
1 |
""" |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
2 |
|
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
3 |
:organization: Logilab |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
4 |
:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2. |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
5 |
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
6 |
:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
7 |
""" |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
8 |
from yams.buildobjs import (EntityType, RelationType, RelationDefinition, |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
9 |
SubjectRelation, ObjectRelation, |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
10 |
RichString, String, Int, Boolean, Datetime, Date) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
11 |
from yams.constraints import SizeConstraint, UniqueConstraint |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
12 |
from cubicweb.schema import (WorkflowableEntityType, RQLConstraint, |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
13 |
ERQLExpression, RRQLExpression) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
14 |
|
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
15 |
class Affaire(EntityType): |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
16 |
permissions = { |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
17 |
'read': ('managers', 'users', 'guests'), |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
18 |
'add': ('managers', ERQLExpression('X concerne S, S owned_by U')), |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
19 |
'update': ('managers', 'owners', ERQLExpression('X concerne S, S owned_by U')), |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
20 |
'delete': ('managers', 'owners', ERQLExpression('X concerne S, S owned_by U')), |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
21 |
} |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
22 |
|
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
23 |
ref = String(fulltextindexed=True, indexed=True, |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
24 |
constraints=[SizeConstraint(16)]) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
25 |
sujet = String(fulltextindexed=True, |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
26 |
constraints=[SizeConstraint(256)]) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
27 |
concerne = SubjectRelation('Societe') |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
28 |
|
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
29 |
class concerne(RelationType): |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
30 |
permissions = { |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
31 |
'read': ('managers', 'users', 'guests'), |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
32 |
'add': ('managers', RRQLExpression('U has_update_permission S')), |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
33 |
'delete': ('managers', RRQLExpression('O owned_by U')), |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
34 |
} |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
35 |
|
2963
12ad88615a12
test and fix migration introducing base classes (w/ regard to yams inheritance)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2745
diff
changeset
|
36 |
class Para(EntityType): |
12ad88615a12
test and fix migration introducing base classes (w/ regard to yams inheritance)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2745
diff
changeset
|
37 |
para = String(maxsize=512) |
12ad88615a12
test and fix migration introducing base classes (w/ regard to yams inheritance)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2745
diff
changeset
|
38 |
newattr = String() |
12ad88615a12
test and fix migration introducing base classes (w/ regard to yams inheritance)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2745
diff
changeset
|
39 |
newinlined = SubjectRelation('Affaire', cardinality='?*', inlined=True) |
12ad88615a12
test and fix migration introducing base classes (w/ regard to yams inheritance)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2745
diff
changeset
|
40 |
newnotinlined = SubjectRelation('Affaire', cardinality='?*') |
12ad88615a12
test and fix migration introducing base classes (w/ regard to yams inheritance)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2745
diff
changeset
|
41 |
|
12ad88615a12
test and fix migration introducing base classes (w/ regard to yams inheritance)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2745
diff
changeset
|
42 |
class Note(Para): |
12ad88615a12
test and fix migration introducing base classes (w/ regard to yams inheritance)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2745
diff
changeset
|
43 |
__specializes_schema__ = True |
12ad88615a12
test and fix migration introducing base classes (w/ regard to yams inheritance)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2745
diff
changeset
|
44 |
|
2592
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
45 |
permissions = {'read': ('managers', 'users', 'guests',), |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
46 |
'update': ('managers', 'owners',), |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
47 |
'delete': ('managers', ), |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
48 |
'add': ('managers', |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
49 |
ERQLExpression('X ecrit_part PE, U in_group G, ' |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
50 |
'PE require_permission P, P name "add_note", ' |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
51 |
'P require_group G'),)} |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
52 |
|
3134
3cda74b5534c
update test to avoid failure due to migration schema changes
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2967
diff
changeset
|
53 |
whatever = Int() # keep it before `date` for unittest_migraction.test_add_attribute_int |
2592
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
54 |
date = Datetime() |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
55 |
type = String(maxsize=1) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
56 |
mydate = Date(default='TODAY') |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
57 |
shortpara = String(maxsize=64) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
58 |
ecrit_par = SubjectRelation('Personne', constraints=[RQLConstraint('S concerne A, O concerne A')]) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
59 |
attachment = SubjectRelation(('File', 'Image')) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
60 |
|
2963
12ad88615a12
test and fix migration introducing base classes (w/ regard to yams inheritance)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2745
diff
changeset
|
61 |
class Text(Para): |
12ad88615a12
test and fix migration introducing base classes (w/ regard to yams inheritance)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2745
diff
changeset
|
62 |
__specializes_schema__ = True |
12ad88615a12
test and fix migration introducing base classes (w/ regard to yams inheritance)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2745
diff
changeset
|
63 |
summary = String(maxsize=512) |
12ad88615a12
test and fix migration introducing base classes (w/ regard to yams inheritance)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2745
diff
changeset
|
64 |
|
2592
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
65 |
class ecrit_par(RelationType): |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
66 |
permissions = {'read': ('managers', 'users', 'guests',), |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
67 |
'delete': ('managers', ), |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
68 |
'add': ('managers', |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
69 |
RRQLExpression('O require_permission P, P name "add_note", ' |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
70 |
'U in_group G, P require_group G'),) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
71 |
} |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
72 |
inlined = True |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
73 |
cardinality = '?*' |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
74 |
|
2626
e297294dff12
F [server test] avoid warning by adding __init__.py file to directory
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2592
diff
changeset
|
75 |
|
2592
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
76 |
class Folder2(EntityType): |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
77 |
"""folders are used to classify entities. They may be defined as a tree. |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
78 |
When you include the Folder entity, all application specific entities |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
79 |
may then be classified using the "filed_under" relation. |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
80 |
""" |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
81 |
name = String(required=True, indexed=True, internationalizable=True, |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
82 |
constraints=[UniqueConstraint(), SizeConstraint(64)]) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
83 |
description = RichString(fulltextindexed=True) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
84 |
|
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
85 |
filed_under2 = ObjectRelation('*') |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
86 |
|
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
87 |
|
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
88 |
class Personne(EntityType): |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
89 |
nom = String(fulltextindexed=True, required=True, maxsize=64) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
90 |
prenom = String(fulltextindexed=True, maxsize=64) |
2637
07103211e511
R [test] update and fix deprecation warnings
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2626
diff
changeset
|
91 |
civility = String(maxsize=1, default='M') |
2592
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
92 |
promo = String(vocabulary=('bon','pasbon')) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
93 |
titre = String(fulltextindexed=True, maxsize=128) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
94 |
adel = String(maxsize=128) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
95 |
ass = String(maxsize=128) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
96 |
web = String(maxsize=128) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
97 |
tel = Int() |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
98 |
fax = Int() |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
99 |
datenaiss = Datetime() |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
100 |
test = Boolean() |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
101 |
|
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
102 |
travaille = SubjectRelation('Societe') |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
103 |
concerne = SubjectRelation('Affaire') |
2745
0dafa29ace1f
[schema migration] test reproducing pb when deleting a relation definition with mandatory card and without removing the associated rtype + fix
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2637
diff
changeset
|
104 |
concerne2 = SubjectRelation(('Affaire', 'Note'), cardinality='1*') |
2592
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
105 |
connait = SubjectRelation('Personne', symetric=True) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
106 |
|
2920
64322aa83a1d
start a new workflow engine
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2745
diff
changeset
|
107 |
class Societe(WorkflowableEntityType): |
2592
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
108 |
permissions = { |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
109 |
'read': ('managers', 'users', 'guests'), |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
110 |
'update': ('managers', 'owners'), |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
111 |
'delete': ('managers', 'owners'), |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
112 |
'add': ('managers', 'users',) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
113 |
} |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
114 |
|
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
115 |
nom = String(maxsize=64, fulltextindexed=True) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
116 |
web = String(maxsize=128) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
117 |
tel = Int() |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
118 |
fax = Int() |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
119 |
rncs = String(maxsize=128) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
120 |
ad1 = String(maxsize=128) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
121 |
ad2 = String(maxsize=128) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
122 |
ad3 = String(maxsize=128) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
123 |
cp = String(maxsize=12) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
124 |
ville= String(maxsize=32) |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
125 |
|
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
126 |
|
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
127 |
class evaluee(RelationDefinition): |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
128 |
subject = ('Personne', 'CWUser', 'Societe') |
c97c4b56e6a0
rewrite migrscheam
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff
changeset
|
129 |
object = ('Note') |