author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Thu, 17 Sep 2009 12:29:47 +0200 | |
branch | 3.5 |
changeset 3285 | fa3dc35b564f |
parent 2508 | b1958ebed570 |
child 4212 | ab6573088b4a |
permissions | -rw-r--r-- |
1977
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
1 |
""" |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
2 |
|
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
3 |
:organization: Logilab |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
4 |
:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2. |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
5 |
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
6 |
:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
7 |
""" |
2508
b1958ebed570
rewrite .sql / .rel files, drop unnecessary entity types, explicit imports
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
1977
diff
changeset
|
8 |
from yams.buildobjs import EntityType, SubjectRelation, String, Int, Date |
b1958ebed570
rewrite .sql / .rel files, drop unnecessary entity types, explicit imports
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
1977
diff
changeset
|
9 |
|
b1958ebed570
rewrite .sql / .rel files, drop unnecessary entity types, explicit imports
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
1977
diff
changeset
|
10 |
from cubes.person.schema import Person |
b1958ebed570
rewrite .sql / .rel files, drop unnecessary entity types, explicit imports
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
1977
diff
changeset
|
11 |
|
0 | 12 |
Person.add_relation(Date(), 'birthday') |
2508
b1958ebed570
rewrite .sql / .rel files, drop unnecessary entity types, explicit imports
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
1977
diff
changeset
|
13 |
|
b1958ebed570
rewrite .sql / .rel files, drop unnecessary entity types, explicit imports
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
1977
diff
changeset
|
14 |
class Bug(EntityType): |
b1958ebed570
rewrite .sql / .rel files, drop unnecessary entity types, explicit imports
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
1977
diff
changeset
|
15 |
title = String(maxsize=64, required=True, fulltextindexed=True) |
b1958ebed570
rewrite .sql / .rel files, drop unnecessary entity types, explicit imports
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
1977
diff
changeset
|
16 |
severity = String(vocabulary=('important', 'normal', 'minor'), default='normal') |
b1958ebed570
rewrite .sql / .rel files, drop unnecessary entity types, explicit imports
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
1977
diff
changeset
|
17 |
cost = Int() |
b1958ebed570
rewrite .sql / .rel files, drop unnecessary entity types, explicit imports
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
1977
diff
changeset
|
18 |
description = String(maxsize=4096, fulltextindexed=True) |
b1958ebed570
rewrite .sql / .rel files, drop unnecessary entity types, explicit imports
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
1977
diff
changeset
|
19 |
identical_to = SubjectRelation('Bug', symetric=True) |
b1958ebed570
rewrite .sql / .rel files, drop unnecessary entity types, explicit imports
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
1977
diff
changeset
|
20 |