equal
deleted
inserted
replaced
1 .. -*- coding: utf-8 -*- |
|
2 |
|
3 Data model definition (*schema*) |
|
4 ================================ |
|
5 |
|
6 The schema is the core piece of a `CubicWeb` application as it defines |
|
7 the data model handled. It is based on entities types already defined |
|
8 in the `CubicWeb` standard library and others, more specific, we would |
|
9 expect to find in one or more Python files under the `schema` directory. |
|
10 |
|
11 At this point, it is important to make clear the difference between |
|
12 relation type and relation definition: a relation type is only a relation |
|
13 name with potentially other additionnal properties (see XXXX), whereas a |
|
14 relation definition is a complete triplet |
|
15 "<subject entity type> <relation type> <object entity type>". |
|
16 A relation type could have been implied if none is related to a |
|
17 relation definition of the schema. |
|
18 |
|
19 |
|
20 .. include:: 04-01-schema-stdlib.en.txt |
|
21 .. include:: 04-02-schema-definition.en.txt |
|
22 |
|