Browse Source

Bugfix for Em MlString translations + me.json update

Yann Weber 8 years ago
parent
commit
d4504df92a

+ 3
- 0
DataSource/MySQL/fieldtypes.py View File

@@ -76,6 +76,9 @@ def fieldtype_db_init(fieldtype, noauto_inc = False):
76 76
     return tuple(res)
77 77
 
78 78
 ## @brief Cast a value given a fieldtype
79
+# @param fieldtype EmFieldType : a fieldtype instance
80
+# @param value : mixed value
81
+# @return The value in a way usable by the datasource
79 82
 def fieldtype_cast(fieldtype, value):
80 83
     if isinstance(fieldtype, EditorialModel.fieldtypes.leo.EmFieldType):
81 84
         return value.uidget()

+ 1
- 0
EditorialModel/classes.py View File

@@ -49,6 +49,7 @@ class EmClass(EmComponent):
49 49
                 # Building fieltypes options to match the ones stored in EditorialModel.classtypes
50 50
                 ftype_opts = field.fieldtype_options()
51 51
                 ftype_opts['fieldtype'] = field.fieldtype
52
+                ftype_opts['string'] = field.string
52 53
 
53 54
                 ctype_opts = EditorialModel.classtypes.common_fields[field.name]
54 55
                 #Adding default value for options nullable, uniq and internal to fieldtypes options stored in classtypes

+ 6
- 0
EditorialModel/classtypes.py View File

@@ -15,18 +15,21 @@ common_fields = {
15 15
         'fieldtype': 'pk',
16 16
         'internal': 'autosql',
17 17
         'immutable' : True,
18
+        'string': '{"___": "", "fre": "identifiant lodel", "eng": "lodel identifier"}'
18 19
     },
19 20
     object_em_class_id : {
20 21
         'fieldtype': 'emuid',
21 22
         'is_id_class': True,
22 23
         'internal': 'automatic',
23 24
         'immutable' : True,
25
+        'string': '{"___": "", "fre": "identifiant de la classe", "eng": "class identifier"}'
24 26
     },
25 27
     object_em_type_id : {
26 28
         'fieldtype': 'emuid',
27 29
         'is_id_class': False,
28 30
         'internal': 'automatic',
29 31
         'immutable' : True,
32
+        'string': '{"___": "", "fre": "identifiant de la type", "eng": "type identifier"}'
30 33
     },
31 34
     'string': {
32 35
         'fieldtype': 'char',
@@ -34,12 +37,14 @@ common_fields = {
34 37
         'internal': 'automatic',
35 38
         'nullable': True,
36 39
         'immutable' : False,
40
+        'string': '{"___": "", "fre": "Représentation textuel", "eng": "String representation"}',
37 41
     },
38 42
     'creation_date': {
39 43
         'fieldtype': 'datetime',
40 44
         'now_on_create': True,
41 45
         'internal': 'autosql',
42 46
         'immutable' : True,
47
+        'string': '{"___": "", "fre": "Date de création", "eng": "Creation date"}',
43 48
     },
44 49
     'modification_date': {
45 50
         'fieldtype': 'datetime',
@@ -47,6 +52,7 @@ common_fields = {
47 52
         'now_on_update': True,
48 53
         'internal': 'autosql',
49 54
         'immutable' : True,
55
+        'string': '{"___": "", "fre": "Date de modification", "eng": "Modification date"}',
50 56
     }
51 57
 }
52 58
 

+ 5
- 2
EditorialModel/components.py View File

@@ -32,8 +32,7 @@ class EmComponent(object):
32 32
         self.check_type('uid', int)
33 33
         self.name = name
34 34
         self.check_type('name', str)
35
-        self.string = MlString() if string is None else string
36
-        self.check_type('string', MlString)
35
+        self.string = string
37 36
         self.help_text = MlString() if help_text is None else help_text
38 37
         self.check_type('help_text', MlString)
39 38
         self.date_update = datetime.datetime.now() if date_update is None else date_update  # WARNING timezone !
@@ -83,6 +82,10 @@ class EmComponent(object):
83 82
 
84 83
     ## @brief Reimplementation for calling the migration handler to register the change
85 84
     def __setattr__(self, attr_name, value):
85
+        if attr_name == 'string':
86
+            if not(isinstance(value, MlString)):
87
+                value = MlString(value)
88
+            super().__setattr__('string', value)
86 89
         inited = '_inited' in self.__dict__ and self.__dict__['_inited']
87 90
         if inited:
88 91
             # if fails raise MigrationHandlerChangeError

+ 340
- 340
EditorialModel/test/me.json View File

@@ -1,603 +1,603 @@
1 1
 {
2 2
  "1": {
3
-  "help_text": "{\"___\": \"\"}",
4
-  "icon": "0",
5
-  "name": "textes",
6
-  "string": "{\"___\": \"\", \"fre\": \"Texte\"}",
7
-  "classtype": "entity",
8 3
   "date_create": "Fri Oct 16 11:05:04 2015",
4
+  "component": "EmClass",
5
+  "name": "textes",
6
+  "rank": 1,
9 7
   "sortcolumn": "rank",
10 8
   "date_update": "Fri Oct 16 11:05:04 2015",
11
-  "component": "EmClass",
12
-  "rank": 1
9
+  "classtype": "entity",
10
+  "icon": "0",
11
+  "string": "{\"___\": \"\", \"fre\": \"Texte\"}",
12
+  "help_text": "{\"___\": \"\"}"
13 13
  },
14 14
  "2": {
15
-  "help_text": "{\"___\": \"\"}",
16
-  "icon": "0",
17
-  "name": "personnes",
18
-  "string": "{\"___\": \"\", \"fre\": \"Personnes\"}",
19
-  "classtype": "person",
20 15
   "date_create": "Fri Oct 16 11:05:04 2015",
16
+  "component": "EmClass",
17
+  "name": "personnes",
18
+  "rank": 1,
21 19
   "sortcolumn": "rank",
22 20
   "date_update": "Fri Oct 16 11:05:04 2015",
23
-  "component": "EmClass",
24
-  "rank": 1
21
+  "classtype": "person",
22
+  "icon": "0",
23
+  "string": "{\"___\": \"\", \"fre\": \"Personnes\"}",
24
+  "help_text": "{\"___\": \"\"}"
25 25
  },
26 26
  "4": {
27 27
   "nullable": false,
28
-  "rel_field_id": null,
29
-  "internal": false,
30
-  "optional": false,
28
+  "name": "titre",
31 29
   "date_update": "Fri Oct 16 11:05:04 2015",
32
-  "component": "EmField",
30
+  "string": "{\"___\": \"\", \"fre\": \"Titre\"}",
33 31
   "help_text": "{\"___\": \"\"}",
32
+  "component": "EmField",
33
+  "date_create": "Fri Oct 16 11:05:04 2015",
34
+  "optional": false,
35
+  "rank": 1,
34 36
   "icon": "0",
35
-  "name": "titre",
36
-  "string": "{\"___\": \"\", \"fre\": \"Titre\"}",
37
-  "class_id": 1,
38 37
   "fieldtype": "i18n",
39
-  "date_create": "Fri Oct 16 11:05:04 2015",
38
+  "rel_field_id": null,
39
+  "class_id": 1,
40 40
   "uniq": false,
41
-  "rank": 1
41
+  "internal": false
42 42
  },
43 43
  "5": {
44
-  "superiors_list": {
45
-   "parent": [
46
-    14
47
-   ]
48
-  },
49
-  "sortcolumn": "rank",
50 44
   "component": "EmType",
51
-  "help_text": "{\"___\": \"\"}",
52
-  "icon": "0",
53 45
   "name": "article",
46
+  "date_update": "Fri Oct 16 11:05:04 2015",
54 47
   "string": "{\"___\": \"\", \"fre\": \"Article\"}",
48
+  "sortcolumn": "rank",
49
+  "date_create": "Fri Oct 16 11:05:04 2015",
50
+  "help_text": "{\"___\": \"\"}",
51
+  "rank": 1,
52
+  "icon": "0",
55 53
   "class_id": 1,
56 54
   "fields_list": [
57 55
    7
58 56
   ],
59
-  "date_create": "Fri Oct 16 11:05:04 2015",
60
-  "rank": 1,
61
-  "date_update": "Fri Oct 16 11:05:04 2015"
57
+  "superiors_list": {
58
+   "parent": [
59
+    14
60
+   ]
61
+  }
62 62
  },
63 63
  "6": {
64
-  "superiors_list": {},
65
-  "sortcolumn": "rank",
66 64
   "component": "EmType",
67
-  "help_text": "{\"___\": \"\"}",
68
-  "icon": "0",
69 65
   "name": "personne",
66
+  "date_update": "Fri Oct 16 11:05:04 2015",
70 67
   "string": "{\"___\": \"\", \"fre\": \"Personne\"}",
68
+  "sortcolumn": "rank",
69
+  "date_create": "Fri Oct 16 11:05:04 2015",
70
+  "help_text": "{\"___\": \"\"}",
71
+  "rank": 1,
72
+  "icon": "0",
71 73
   "class_id": 2,
72 74
   "fields_list": [
73 75
    10
74 76
   ],
75
-  "date_create": "Fri Oct 16 11:05:04 2015",
76
-  "rank": 1,
77
-  "date_update": "Fri Oct 16 11:05:04 2015"
77
+  "superiors_list": {}
78 78
  },
79 79
  "7": {
80 80
   "nullable": false,
81
-  "rel_field_id": null,
82
-  "internal": false,
83
-  "optional": true,
81
+  "name": "soustitre",
84 82
   "date_update": "Fri Oct 16 11:05:04 2015",
85
-  "component": "EmField",
83
+  "string": "{\"___\": \"\", \"fre\": \"Sous-titre\"}",
86 84
   "help_text": "{\"___\": \"\"}",
85
+  "component": "EmField",
86
+  "date_create": "Fri Oct 16 11:05:04 2015",
87
+  "optional": true,
88
+  "rank": 5,
87 89
   "icon": "0",
88
-  "name": "soustitre",
89
-  "string": "{\"___\": \"\", \"fre\": \"Sous-titre\"}",
90
-  "class_id": 1,
91 90
   "fieldtype": "i18n",
92
-  "date_create": "Fri Oct 16 11:05:04 2015",
91
+  "rel_field_id": null,
92
+  "class_id": 1,
93 93
   "uniq": false,
94
-  "rank": 5
94
+  "internal": false
95 95
  },
96 96
  "9": {
97 97
   "nullable": true,
98
-  "rel_field_id": null,
99
-  "internal": false,
100
-  "optional": false,
98
+  "name": "nom",
101 99
   "date_update": "Fri Oct 16 11:05:04 2015",
102
-  "component": "EmField",
100
+  "string": "{\"___\": \"\", \"fre\": \"Nom\"}",
103 101
   "help_text": "{\"___\": \"\"}",
102
+  "component": "EmField",
103
+  "date_create": "Fri Oct 16 11:05:04 2015",
104
+  "optional": false,
105
+  "rank": 1,
104 106
   "icon": "0",
105
-  "name": "nom",
106
-  "string": "{\"___\": \"\", \"fre\": \"Nom\"}",
107
-  "class_id": 2,
108 107
   "fieldtype": "char",
109
-  "date_create": "Fri Oct 16 11:05:04 2015",
108
+  "rel_field_id": null,
109
+  "class_id": 2,
110 110
   "uniq": false,
111
-  "rank": 1
111
+  "internal": false
112 112
  },
113 113
  "10": {
114 114
   "nullable": true,
115
-  "rel_field_id": null,
116
-  "internal": false,
117
-  "optional": true,
115
+  "name": "prenom",
118 116
   "date_update": "Fri Oct 16 11:05:04 2015",
119
-  "component": "EmField",
117
+  "string": "{\"___\": \"\", \"fre\": \"Pr\\u00e9nom\"}",
120 118
   "help_text": "{\"___\": \"\"}",
119
+  "component": "EmField",
120
+  "date_create": "Fri Oct 16 11:05:04 2015",
121
+  "optional": true,
122
+  "rank": 3,
121 123
   "icon": "0",
122
-  "name": "prenom",
123
-  "string": "{\"___\": \"\", \"fre\": \"Pr\\u00e9nom\"}",
124
-  "class_id": 2,
125 124
   "fieldtype": "char",
126
-  "date_create": "Fri Oct 16 11:05:04 2015",
125
+  "rel_field_id": null,
126
+  "class_id": 2,
127 127
   "uniq": false,
128
-  "rank": 3
128
+  "internal": false
129 129
  },
130 130
  "11": {
131 131
   "nullable": true,
132
-  "rel_field_id": null,
133
-  "internal": false,
134
-  "optional": false,
132
+  "name": "auteur",
133
+  "uniq": false,
135 134
   "date_update": "Fri Oct 16 11:05:04 2015",
136
-  "component": "EmField",
135
+  "string": "{\"___\": \"\", \"fre\": \"Auteur\"}",
137 136
   "help_text": "{\"___\": \"\"}",
137
+  "component": "EmField",
138
+  "date_create": "Fri Oct 16 11:05:04 2015",
139
+  "optional": false,
140
+  "rank": 2,
138 141
   "icon": "0",
139
-  "name": "auteur",
140
-  "string": "{\"___\": \"\", \"fre\": \"Auteur\"}",
141
-  "class_id": 1,
142 142
   "fieldtype": "rel2type",
143
+  "rel_field_id": null,
144
+  "class_id": 1,
143 145
   "rel_to_type_id": 6,
144
-  "date_create": "Fri Oct 16 11:05:04 2015",
145
-  "uniq": false,
146
-  "rank": 2
146
+  "internal": false
147 147
  },
148 148
  "12": {
149 149
   "nullable": true,
150
-  "rel_field_id": 11,
151
-  "internal": false,
152
-  "optional": false,
150
+  "name": "adresse",
153 151
   "date_update": "Fri Oct 16 11:05:04 2015",
154
-  "component": "EmField",
152
+  "string": "{\"___\": \"\", \"fre\": \"Adresse\"}",
155 153
   "help_text": "{\"___\": \"\"}",
154
+  "component": "EmField",
155
+  "date_create": "Fri Oct 16 11:05:04 2015",
156
+  "optional": false,
157
+  "rank": 6,
156 158
   "icon": "0",
157
-  "name": "adresse",
158
-  "string": "{\"___\": \"\", \"fre\": \"Adresse\"}",
159
-  "class_id": 1,
160 159
   "fieldtype": "char",
161
-  "date_create": "Fri Oct 16 11:05:04 2015",
160
+  "rel_field_id": 11,
161
+  "class_id": 1,
162 162
   "uniq": false,
163
-  "rank": 6
163
+  "internal": false
164 164
  },
165 165
  "13": {
166
-  "help_text": "{\"___\": \"\"}",
167
-  "icon": "0",
168
-  "name": "publication",
169
-  "string": "{\"___\": \"\", \"fre\": \"Publication\"}",
170
-  "classtype": "entity",
171 166
   "date_create": "Fri Oct 16 11:05:04 2015",
167
+  "component": "EmClass",
168
+  "name": "publication",
169
+  "rank": 2,
172 170
   "sortcolumn": "rank",
173 171
   "date_update": "Fri Oct 16 11:05:04 2015",
174
-  "component": "EmClass",
175
-  "rank": 2
172
+  "classtype": "entity",
173
+  "icon": "0",
174
+  "string": "{\"___\": \"\", \"fre\": \"Publication\"}",
175
+  "help_text": "{\"___\": \"\"}"
176 176
  },
177 177
  "14": {
178
-  "superiors_list": {
179
-   "parent": [
180
-    14,
181
-    19
182
-   ]
183
-  },
184
-  "sortcolumn": "rank",
185 178
   "component": "EmType",
186
-  "help_text": "{\"___\": \"\"}",
187
-  "icon": "0",
188 179
   "name": "rubrique",
180
+  "date_update": "Fri Oct 16 11:05:04 2015",
189 181
   "string": "{\"___\": \"\", \"fre\": \"Rubrique\"}",
190
-  "class_id": 13,
191
-  "fields_list": [],
182
+  "sortcolumn": "rank",
192 183
   "date_create": "Fri Oct 16 11:05:04 2015",
184
+  "help_text": "{\"___\": \"\"}",
193 185
   "rank": 1,
194
-  "date_update": "Fri Oct 16 11:05:04 2015"
186
+  "icon": "0",
187
+  "class_id": 13,
188
+  "fields_list": [],
189
+  "superiors_list": {
190
+   "parent": [
191
+    14,
192
+    19
193
+   ]
194
+  }
195 195
  },
196 196
  "16": {
197 197
   "nullable": true,
198
-  "rel_field_id": null,
199
-  "internal": false,
200
-  "optional": false,
198
+  "name": "titre",
201 199
   "date_update": "Fri Oct 16 11:05:04 2015",
202
-  "component": "EmField",
200
+  "string": "{\"___\": \"\", \"fre\": \"Titre\"}",
203 201
   "help_text": "{\"___\": \"\"}",
202
+  "component": "EmField",
203
+  "date_create": "Fri Oct 16 11:05:04 2015",
204
+  "optional": false,
205
+  "rank": 1,
204 206
   "icon": "0",
205
-  "name": "titre",
206
-  "string": "{\"___\": \"\", \"fre\": \"Titre\"}",
207
-  "class_id": 13,
208 207
   "fieldtype": "char",
209
-  "date_create": "Fri Oct 16 11:05:04 2015",
208
+  "rel_field_id": null,
209
+  "class_id": 13,
210 210
   "uniq": false,
211
-  "rank": 1
211
+  "internal": false
212 212
  },
213 213
  "18": {
214 214
   "nullable": true,
215
-  "rel_field_id": null,
216
-  "internal": false,
217
-  "optional": true,
215
+  "name": "age",
218 216
   "date_update": "Fri Oct 16 11:05:04 2015",
219
-  "component": "EmField",
217
+  "string": "{\"___\": \"\", \"fre\": \"Age\"}",
220 218
   "help_text": "{\"___\": \"\"}",
219
+  "component": "EmField",
220
+  "date_create": "Fri Oct 16 11:05:04 2015",
221
+  "optional": true,
222
+  "rank": 5,
221 223
   "icon": "0",
222
-  "name": "age",
223
-  "string": "{\"___\": \"\", \"fre\": \"Age\"}",
224
-  "class_id": 2,
225 224
   "fieldtype": "char",
226
-  "date_create": "Fri Oct 16 11:05:04 2015",
225
+  "rel_field_id": null,
226
+  "class_id": 2,
227 227
   "uniq": false,
228
-  "rank": 5
228
+  "internal": false
229 229
  },
230 230
  "19": {
231
-  "superiors_list": {},
232
-  "sortcolumn": "rank",
233 231
   "component": "EmType",
234
-  "help_text": "{\"___\": \"\"}",
235
-  "icon": "0",
236 232
   "name": "numero",
233
+  "date_update": "Fri Oct 16 11:05:04 2015",
237 234
   "string": "{\"___\": \"\", \"fre\": \"Num\\u00e9ro\"}",
238
-  "class_id": 13,
239
-  "fields_list": [],
235
+  "sortcolumn": "rank",
240 236
   "date_create": "Fri Oct 16 11:05:04 2015",
237
+  "help_text": "{\"___\": \"\"}",
241 238
   "rank": 2,
242
-  "date_update": "Fri Oct 16 11:05:04 2015"
239
+  "icon": "0",
240
+  "class_id": 13,
241
+  "fields_list": [],
242
+  "superiors_list": {}
243 243
  },
244 244
  "21": {
245 245
   "nullable": true,
246
-  "rel_field_id": null,
247
-  "internal": false,
248
-  "optional": true,
246
+  "name": "bleu",
249 247
   "date_update": "Fri Oct 16 11:05:04 2015",
250
-  "component": "EmField",
248
+  "string": "{\"___\": \"\", \"fre\": \"Bleu\"}",
251 249
   "help_text": "{\"___\": \"\"}",
250
+  "component": "EmField",
251
+  "date_create": "Fri Oct 16 11:05:04 2015",
252
+  "optional": true,
253
+  "rank": 3,
252 254
   "icon": "0",
253
-  "name": "bleu",
254
-  "string": "{\"___\": \"\", \"fre\": \"Bleu\"}",
255
-  "class_id": 1,
256 255
   "fieldtype": "char",
257
-  "date_create": "Fri Oct 16 11:05:04 2015",
256
+  "rel_field_id": null,
257
+  "class_id": 1,
258 258
   "uniq": false,
259
-  "rank": 3
259
+  "internal": false
260 260
  },
261 261
  "23": {
262
-  "nullable": false,
263
-  "rel_field_id": null,
264 262
   "is_id_class": true,
265
-  "internal": "automatic",
266
-  "optional": false,
267
-  "immutable": true,
263
+  "name": "class_id",
268 264
   "component": "EmField",
265
+  "date_update": "Fri Oct 16 11:05:04 2015",
266
+  "string": "{\"___\": \"\", \"eng\": \"class identifier\", \"fre\": \"identifiant de la classe\"}",
269 267
   "help_text": "{\"___\": \"\"}",
270
-  "icon": "0",
271
-  "name": "class_id",
272
-  "string": "{\"___\": \"\"}",
273
-  "class_id": 1,
268
+  "optional": false,
269
+  "nullable": false,
270
+  "rel_field_id": null,
271
+  "rank": 4,
272
+  "internal": "automatic",
274 273
   "fieldtype": "emuid",
275
-  "date_update": "Fri Oct 16 11:05:04 2015",
274
+  "immutable": true,
276 275
   "date_create": "Fri Oct 16 11:05:04 2015",
276
+  "class_id": 1,
277 277
   "uniq": false,
278
-  "rank": 4
278
+  "icon": "0"
279 279
  },
280 280
  "24": {
281 281
   "nullable": true,
282
-  "rel_field_id": null,
283
-  "internal": "automatic",
284
-  "optional": false,
285
-  "fieldtype": "char",
286
-  "immutable": false,
282
+  "name": "string",
287 283
   "component": "EmField",
284
+  "date_update": "Fri Oct 16 11:05:04 2015",
285
+  "string": "{\"___\": \"\", \"eng\": \"String representation\", \"fre\": \"Repr\\u00e9sentation textuel\"}",
288 286
   "help_text": "{\"___\": \"\"}",
289
-  "icon": "0",
290
-  "name": "string",
291
-  "string": "{\"___\": \"\"}",
287
+  "internal": "automatic",
288
+  "date_create": "Fri Oct 16 11:05:04 2015",
289
+  "rel_field_id": null,
290
+  "rank": 7,
291
+  "immutable": false,
292
+  "fieldtype": "char",
292 293
   "class_id": 1,
294
+  "optional": false,
293 295
   "max_length": 128,
294
-  "date_update": "Fri Oct 16 11:05:04 2015",
295
-  "date_create": "Fri Oct 16 11:05:04 2015",
296 296
   "uniq": false,
297
-  "rank": 7
297
+  "icon": "0"
298 298
  },
299 299
  "25": {
300
-  "nullable": false,
301
-  "rel_field_id": null,
302 300
   "is_id_class": false,
303
-  "internal": "automatic",
304
-  "optional": false,
305
-  "immutable": true,
306
-  "component": "EmField",
307
-  "help_text": "{\"___\": \"\"}",
308
-  "icon": "0",
309 301
   "name": "type_id",
310
-  "string": "{\"___\": \"\"}",
311
-  "class_id": 1,
312
-  "fieldtype": "emuid",
313 302
   "date_update": "Fri Oct 16 11:05:04 2015",
303
+  "string": "{\"___\": \"\", \"eng\": \"type identifier\", \"fre\": \"identifiant de la type\"}",
304
+  "help_text": "{\"___\": \"\"}",
305
+  "component": "EmField",
314 306
   "date_create": "Fri Oct 16 11:05:04 2015",
307
+  "rel_field_id": null,
308
+  "rank": 8,
309
+  "internal": "automatic",
310
+  "fieldtype": "emuid",
311
+  "class_id": 1,
312
+  "optional": false,
313
+  "immutable": true,
314
+  "nullable": false,
315 315
   "uniq": false,
316
-  "rank": 8
316
+  "icon": "0"
317 317
  },
318 318
  "26": {
319 319
   "nullable": false,
320
+  "name": "lodel_id",
321
+  "date_update": "Fri Oct 16 11:05:04 2015",
322
+  "string": "{\"___\": \"\", \"eng\": \"lodel identifier\", \"fre\": \"identifiant lodel\"}",
323
+  "help_text": "{\"___\": \"\"}",
324
+  "component": "EmField",
325
+  "date_create": "Fri Oct 16 11:05:04 2015",
320 326
   "rel_field_id": null,
327
+  "rank": 9,
321 328
   "internal": "autosql",
322
-  "optional": false,
329
+  "fieldtype": "pk",
323 330
   "immutable": true,
324
-  "component": "EmField",
325
-  "help_text": "{\"___\": \"\"}",
326
-  "icon": "0",
327
-  "name": "lodel_id",
328
-  "string": "{\"___\": \"\"}",
331
+  "optional": false,
329 332
   "class_id": 1,
330
-  "fieldtype": "pk",
331
-  "date_update": "Fri Oct 16 11:05:04 2015",
332
-  "date_create": "Fri Oct 16 11:05:04 2015",
333 333
   "uniq": false,
334
-  "rank": 9
334
+  "icon": "0"
335 335
  },
336 336
  "28": {
337
-  "nullable": false,
338
-  "rel_field_id": null,
339 337
   "is_id_class": true,
340
-  "internal": "automatic",
341
-  "optional": false,
342
-  "immutable": true,
343
-  "component": "EmField",
344
-  "help_text": "{\"___\": \"\"}",
345
-  "icon": "0",
346 338
   "name": "class_id",
347
-  "string": "{\"___\": \"\"}",
348
-  "class_id": 2,
349
-  "fieldtype": "emuid",
350 339
   "date_update": "Fri Oct 16 11:05:04 2015",
340
+  "string": "{\"___\": \"\", \"eng\": \"class identifier\", \"fre\": \"identifiant de la classe\"}",
341
+  "help_text": "{\"___\": \"\"}",
342
+  "component": "EmField",
351 343
   "date_create": "Fri Oct 16 11:05:04 2015",
344
+  "rel_field_id": null,
345
+  "rank": 2,
346
+  "internal": "automatic",
347
+  "fieldtype": "emuid",
348
+  "class_id": 2,
349
+  "optional": false,
350
+  "immutable": true,
351
+  "nullable": false,
352 352
   "uniq": false,
353
-  "rank": 2
353
+  "icon": "0"
354 354
  },
355 355
  "29": {
356 356
   "nullable": true,
357
-  "rel_field_id": null,
358
-  "internal": "automatic",
359
-  "optional": false,
360
-  "fieldtype": "char",
361
-  "immutable": false,
357
+  "name": "string",
362 358
   "component": "EmField",
359
+  "date_update": "Fri Oct 16 11:05:04 2015",
360
+  "string": "{\"___\": \"\", \"eng\": \"String representation\", \"fre\": \"Repr\\u00e9sentation textuel\"}",
363 361
   "help_text": "{\"___\": \"\"}",
364
-  "icon": "0",
365
-  "name": "string",
366
-  "string": "{\"___\": \"\"}",
362
+  "internal": "automatic",
363
+  "date_create": "Fri Oct 16 11:05:04 2015",
364
+  "rel_field_id": null,
365
+  "rank": 4,
366
+  "immutable": false,
367
+  "fieldtype": "char",
367 368
   "class_id": 2,
369
+  "optional": false,
368 370
   "max_length": 128,
369
-  "date_update": "Fri Oct 16 11:05:04 2015",
370
-  "date_create": "Fri Oct 16 11:05:04 2015",
371 371
   "uniq": false,
372
-  "rank": 4
372
+  "icon": "0"
373 373
  },
374 374
  "30": {
375
-  "nullable": false,
376
-  "rel_field_id": null,
377 375
   "is_id_class": false,
378
-  "internal": "automatic",
379
-  "optional": false,
380
-  "immutable": true,
381
-  "component": "EmField",
382
-  "help_text": "{\"___\": \"\"}",
383
-  "icon": "0",
384 376
   "name": "type_id",
385
-  "string": "{\"___\": \"\"}",
386
-  "class_id": 2,
387
-  "fieldtype": "emuid",
388 377
   "date_update": "Fri Oct 16 11:05:04 2015",
378
+  "string": "{\"___\": \"\", \"eng\": \"type identifier\", \"fre\": \"identifiant de la type\"}",
379
+  "help_text": "{\"___\": \"\"}",
380
+  "component": "EmField",
389 381
   "date_create": "Fri Oct 16 11:05:04 2015",
382
+  "rel_field_id": null,
383
+  "rank": 6,
384
+  "internal": "automatic",
385
+  "fieldtype": "emuid",
386
+  "class_id": 2,
387
+  "optional": false,
388
+  "immutable": true,
389
+  "nullable": false,
390 390
   "uniq": false,
391
-  "rank": 6
391
+  "icon": "0"
392 392
  },
393 393
  "31": {
394 394
   "nullable": false,
395
+  "name": "lodel_id",
396
+  "date_update": "Fri Oct 16 11:05:04 2015",
397
+  "string": "{\"___\": \"\", \"eng\": \"lodel identifier\", \"fre\": \"identifiant lodel\"}",
398
+  "help_text": "{\"___\": \"\"}",
399
+  "component": "EmField",
400
+  "date_create": "Fri Oct 16 11:05:04 2015",
395 401
   "rel_field_id": null,
402
+  "rank": 7,
396 403
   "internal": "autosql",
397
-  "optional": false,
404
+  "fieldtype": "pk",
398 405
   "immutable": true,
399
-  "component": "EmField",
400
-  "help_text": "{\"___\": \"\"}",
401
-  "icon": "0",
402
-  "name": "lodel_id",
403
-  "string": "{\"___\": \"\"}",
406
+  "optional": false,
404 407
   "class_id": 2,
405
-  "fieldtype": "pk",
406
-  "date_update": "Fri Oct 16 11:05:04 2015",
407
-  "date_create": "Fri Oct 16 11:05:04 2015",
408 408
   "uniq": false,
409
-  "rank": 7
409
+  "icon": "0"
410 410
  },
411 411
  "33": {
412
-  "nullable": false,
413
-  "rel_field_id": null,
414 412
   "is_id_class": true,
415
-  "internal": "automatic",
416
-  "optional": false,
417
-  "immutable": true,
418
-  "component": "EmField",
419
-  "help_text": "{\"___\": \"\"}",
420
-  "icon": "0",
421 413
   "name": "class_id",
422
-  "string": "{\"___\": \"\"}",
423
-  "class_id": 13,
424
-  "fieldtype": "emuid",
425 414
   "date_update": "Fri Oct 16 11:05:04 2015",
415
+  "string": "{\"___\": \"\", \"eng\": \"class identifier\", \"fre\": \"identifiant de la classe\"}",
416
+  "help_text": "{\"___\": \"\"}",
417
+  "component": "EmField",
426 418
   "date_create": "Fri Oct 16 11:05:04 2015",
419
+  "rel_field_id": null,
420
+  "rank": 2,
421
+  "internal": "automatic",
422
+  "fieldtype": "emuid",
423
+  "class_id": 13,
424
+  "optional": false,
425
+  "immutable": true,
426
+  "nullable": false,
427 427
   "uniq": false,
428
-  "rank": 2
428
+  "icon": "0"
429 429
  },
430 430
  "34": {
431 431
   "nullable": true,
432
-  "rel_field_id": null,
433
-  "internal": "automatic",
434
-  "optional": false,
435
-  "fieldtype": "char",
436
-  "immutable": false,
432
+  "name": "string",
437 433
   "component": "EmField",
434
+  "date_update": "Fri Oct 16 11:05:04 2015",
435
+  "string": "{\"___\": \"\", \"eng\": \"String representation\", \"fre\": \"Repr\\u00e9sentation textuel\"}",
438 436
   "help_text": "{\"___\": \"\"}",
439
-  "icon": "0",
440
-  "name": "string",
441
-  "string": "{\"___\": \"\"}",
437
+  "internal": "automatic",
438
+  "date_create": "Fri Oct 16 11:05:04 2015",
439
+  "rel_field_id": null,
440
+  "rank": 3,
441
+  "immutable": false,
442
+  "fieldtype": "char",
442 443
   "class_id": 13,
444
+  "optional": false,
443 445
   "max_length": 128,
444
-  "date_update": "Fri Oct 16 11:05:04 2015",
445
-  "date_create": "Fri Oct 16 11:05:04 2015",
446 446
   "uniq": false,
447
-  "rank": 3
447
+  "icon": "0"
448 448
  },
449 449
  "35": {
450
-  "nullable": false,
451
-  "rel_field_id": null,
452 450
   "is_id_class": false,
453
-  "internal": "automatic",
454
-  "optional": false,
455
-  "immutable": true,
456
-  "component": "EmField",
457
-  "help_text": "{\"___\": \"\"}",
458
-  "icon": "0",
459 451
   "name": "type_id",
460
-  "string": "{\"___\": \"\"}",
461
-  "class_id": 13,
462
-  "fieldtype": "emuid",
463 452
   "date_update": "Fri Oct 16 11:05:04 2015",
453
+  "string": "{\"___\": \"\", \"eng\": \"type identifier\", \"fre\": \"identifiant de la type\"}",
454
+  "help_text": "{\"___\": \"\"}",
455
+  "component": "EmField",
464 456
   "date_create": "Fri Oct 16 11:05:04 2015",
457
+  "rel_field_id": null,
458
+  "rank": 4,
459
+  "internal": "automatic",
460
+  "fieldtype": "emuid",
461
+  "class_id": 13,
462
+  "optional": false,
463
+  "immutable": true,
464
+  "nullable": false,
465 465
   "uniq": false,
466
-  "rank": 4
466
+  "icon": "0"
467 467
  },
468 468
  "36": {
469 469
   "nullable": false,
470
+  "name": "lodel_id",
471
+  "date_update": "Fri Oct 16 11:05:04 2015",
472
+  "string": "{\"___\": \"\", \"eng\": \"lodel identifier\", \"fre\": \"identifiant lodel\"}",
473
+  "help_text": "{\"___\": \"\"}",
474
+  "component": "EmField",
475
+  "date_create": "Fri Oct 16 11:05:04 2015",
470 476
   "rel_field_id": null,
477
+  "rank": 5,
471 478
   "internal": "autosql",
472
-  "optional": false,
479
+  "fieldtype": "pk",
473 480
   "immutable": true,
474
-  "component": "EmField",
475
-  "help_text": "{\"___\": \"\"}",
476
-  "icon": "0",
477
-  "name": "lodel_id",
478
-  "string": "{\"___\": \"\"}",
481
+  "optional": false,
479 482
   "class_id": 13,
480
-  "fieldtype": "pk",
481
-  "date_update": "Fri Oct 16 11:05:04 2015",
482
-  "date_create": "Fri Oct 16 11:05:04 2015",
483 483
   "uniq": false,
484
-  "rank": 5
484
+  "icon": "0"
485 485
  },
486 486
  "37": {
487 487
   "nullable": false,
488
-  "rel_field_id": null,
489
-  "uniq": false,
490
-  "internal": "autosql",
491
-  "optional": false,
488
+  "name": "modification_date",
492 489
   "date_update": "Wed Nov  4 10:52:13 2015",
493
-  "component": "EmField",
490
+  "string": "{\"___\": \"\", \"eng\": \"Modification date\", \"fre\": \"Date de modification\"}",
494 491
   "help_text": "{\"___\": \"\"}",
495
-  "icon": "0",
496
-  "name": "modification_date",
497
-  "string": "{\"___\": \"\"}",
492
+  "component": "EmField",
498 493
   "date_create": "Wed Nov  4 10:52:13 2015",
494
+  "optional": false,
499 495
   "class_id": 1,
496
+  "rank": 10,
497
+  "internal": "autosql",
500 498
   "fieldtype": "datetime",
499
+  "now_on_create": true,
500
+  "rel_field_id": null,
501 501
   "immutable": true,
502
+  "uniq": false,
502 503
   "now_on_update": true,
503
-  "now_on_create": true,
504
-  "rank": 10
504
+  "icon": "0"
505 505
  },
506 506
  "38": {
507 507
   "nullable": false,
508
-  "rel_field_id": null,
509
-  "internal": "autosql",
510
-  "optional": false,
511
-  "immutable": true,
512
-  "component": "EmField",
513
-  "help_text": "{\"___\": \"\"}",
514
-  "icon": "0",
515 508
   "name": "creation_date",
516
-  "string": "{\"___\": \"\"}",
517
-  "class_id": 1,
518
-  "fieldtype": "datetime",
509
+  "component": "EmField",
519 510
   "date_update": "Wed Nov  4 10:52:13 2015",
511
+  "string": "{\"___\": \"\", \"eng\": \"Creation date\", \"fre\": \"Date de cr\\u00e9ation\"}",
512
+  "help_text": "{\"___\": \"\"}",
513
+  "internal": "autosql",
520 514
   "date_create": "Wed Nov  4 10:52:13 2015",
521
-  "uniq": false,
515
+  "rel_field_id": null,
516
+  "rank": 11,
517
+  "immutable": true,
518
+  "fieldtype": "datetime",
522 519
   "now_on_create": true,
523
-  "rank": 11
520
+  "optional": false,
521
+  "class_id": 1,
522
+  "uniq": false,
523
+  "icon": "0"
524 524
  },
525 525
  "39": {
526 526
   "nullable": false,
527
-  "rel_field_id": null,
528
-  "uniq": false,
529
-  "internal": "autosql",
530
-  "optional": false,
527
+  "name": "modification_date",
531 528
   "date_update": "Wed Nov  4 10:52:13 2015",
532
-  "component": "EmField",
529
+  "string": "{\"___\": \"\", \"eng\": \"Modification date\", \"fre\": \"Date de modification\"}",
533 530
   "help_text": "{\"___\": \"\"}",
534
-  "icon": "0",
535
-  "name": "modification_date",
536
-  "string": "{\"___\": \"\"}",
531
+  "component": "EmField",
537 532
   "date_create": "Wed Nov  4 10:52:13 2015",
533
+  "optional": false,
538 534
   "class_id": 2,
535
+  "rank": 8,
536
+  "internal": "autosql",
539 537
   "fieldtype": "datetime",
538
+  "now_on_create": true,
539
+  "rel_field_id": null,
540 540
   "immutable": true,
541
+  "uniq": false,
541 542
   "now_on_update": true,
542
-  "now_on_create": true,
543
-  "rank": 8
543
+  "icon": "0"
544 544
  },
545 545
  "40": {
546 546
   "nullable": false,
547
-  "rel_field_id": null,
548
-  "internal": "autosql",
549
-  "optional": false,
550
-  "immutable": true,
551
-  "component": "EmField",
552
-  "help_text": "{\"___\": \"\"}",
553
-  "icon": "0",
554 547
   "name": "creation_date",
555
-  "string": "{\"___\": \"\"}",
556
-  "class_id": 2,
557
-  "fieldtype": "datetime",
548
+  "component": "EmField",
558 549
   "date_update": "Wed Nov  4 10:52:13 2015",
550
+  "string": "{\"___\": \"\", \"eng\": \"Creation date\", \"fre\": \"Date de cr\\u00e9ation\"}",
551
+  "help_text": "{\"___\": \"\"}",
552
+  "internal": "autosql",
559 553
   "date_create": "Wed Nov  4 10:52:13 2015",
560
-  "uniq": false,
554
+  "rel_field_id": null,
555
+  "rank": 9,
556
+  "immutable": true,
557
+  "fieldtype": "datetime",
561 558
   "now_on_create": true,
562
-  "rank": 9
559
+  "optional": false,
560
+  "class_id": 2,
561
+  "uniq": false,
562
+  "icon": "0"
563 563
  },
564 564
  "41": {
565 565
   "nullable": false,
566
-  "rel_field_id": null,
567
-  "uniq": false,
568
-  "internal": "autosql",
569
-  "optional": false,
566
+  "name": "modification_date",
570 567
   "date_update": "Wed Nov  4 10:52:13 2015",
571
-  "component": "EmField",
568
+  "string": "{\"___\": \"\", \"eng\": \"Modification date\", \"fre\": \"Date de modification\"}",
572 569
   "help_text": "{\"___\": \"\"}",
573
-  "icon": "0",
574
-  "name": "modification_date",
575
-  "string": "{\"___\": \"\"}",
570
+  "component": "EmField",
576 571
   "date_create": "Wed Nov  4 10:52:13 2015",
572
+  "optional": false,
577 573
   "class_id": 13,
574
+  "rank": 6,
575
+  "internal": "autosql",
578 576
   "fieldtype": "datetime",
577
+  "now_on_create": true,
578
+  "rel_field_id": null,
579 579
   "immutable": true,
580
+  "uniq": false,
580 581
   "now_on_update": true,
581
-  "now_on_create": true,
582
-  "rank": 6
582
+  "icon": "0"
583 583
  },
584 584
  "42": {
585 585
   "nullable": false,
586
-  "rel_field_id": null,
587
-  "internal": "autosql",
588
-  "optional": false,
589
-  "immutable": true,
590
-  "component": "EmField",
591
-  "help_text": "{\"___\": \"\"}",
592
-  "icon": "0",
593 586
   "name": "creation_date",
594
-  "string": "{\"___\": \"\"}",
595
-  "class_id": 13,
596
-  "fieldtype": "datetime",
587
+  "component": "EmField",
597 588
   "date_update": "Wed Nov  4 10:52:13 2015",
589
+  "string": "{\"___\": \"\", \"eng\": \"Creation date\", \"fre\": \"Date de cr\\u00e9ation\"}",
590
+  "help_text": "{\"___\": \"\"}",
591
+  "internal": "autosql",
598 592
   "date_create": "Wed Nov  4 10:52:13 2015",
599
-  "uniq": false,
593
+  "rel_field_id": null,
594
+  "rank": 7,
595
+  "immutable": true,
596
+  "fieldtype": "datetime",
600 597
   "now_on_create": true,
601
-  "rank": 7
598
+  "optional": false,
599
+  "class_id": 13,
600
+  "uniq": false,
601
+  "icon": "0"
602 602
  }
603 603
 }

+ 340
- 340
install/em.json View File

@@ -1,603 +1,603 @@
1 1
 {
2 2
  "1": {
3
-  "help_text": "{\"___\": \"\"}",
4
-  "icon": "0",
5
-  "name": "textes",
6
-  "string": "{\"___\": \"\", \"fre\": \"Texte\"}",
7
-  "classtype": "entity",
8 3
   "date_create": "Fri Oct 16 11:05:04 2015",
4
+  "component": "EmClass",
5
+  "name": "textes",
6
+  "rank": 1,
9 7
   "sortcolumn": "rank",
10 8
   "date_update": "Fri Oct 16 11:05:04 2015",
11
-  "component": "EmClass",
12
-  "rank": 1
9
+  "classtype": "entity",
10
+  "icon": "0",
11
+  "string": "{\"___\": \"\", \"fre\": \"Texte\"}",
12
+  "help_text": "{\"___\": \"\"}"
13 13
  },
14 14
  "2": {
15
-  "help_text": "{\"___\": \"\"}",
16
-  "icon": "0",
17
-  "name": "personnes",
18
-  "string": "{\"___\": \"\", \"fre\": \"Personnes\"}",
19
-  "classtype": "person",
20 15
   "date_create": "Fri Oct 16 11:05:04 2015",
16
+  "component": "EmClass",
17
+  "name": "personnes",
18
+  "rank": 1,
21 19
   "sortcolumn": "rank",
22 20
   "date_update": "Fri Oct 16 11:05:04 2015",
23
-  "component": "EmClass",
24
-  "rank": 1
21
+  "classtype": "person",
22
+  "icon": "0",
23
+  "string": "{\"___\": \"\", \"fre\": \"Personnes\"}",
24
+  "help_text": "{\"___\": \"\"}"
25 25
  },
26 26
  "4": {
27 27
   "nullable": false,
28
-  "rel_field_id": null,
29
-  "internal": false,
30
-  "optional": false,
28
+  "name": "titre",
31 29
   "date_update": "Fri Oct 16 11:05:04 2015",
32
-  "component": "EmField",
30
+  "string": "{\"___\": \"\", \"fre\": \"Titre\"}",
33 31
   "help_text": "{\"___\": \"\"}",
32
+  "component": "EmField",
33
+  "date_create": "Fri Oct 16 11:05:04 2015",
34
+  "optional": false,
35
+  "rank": 1,
34 36
   "icon": "0",
35
-  "name": "titre",
36
-  "string": "{\"___\": \"\", \"fre\": \"Titre\"}",
37
-  "class_id": 1,
38 37
   "fieldtype": "i18n",
39
-  "date_create": "Fri Oct 16 11:05:04 2015",
38
+  "rel_field_id": null,
39
+  "class_id": 1,
40 40
   "uniq": false,
41
-  "rank": 1
41
+  "internal": false
42 42
  },
43 43
  "5": {
44
-  "superiors_list": {
45
-   "parent": [
46
-    14
47
-   ]
48
-  },
49
-  "sortcolumn": "rank",
50 44
   "component": "EmType",
51
-  "help_text": "{\"___\": \"\"}",
52
-  "icon": "0",
53 45
   "name": "article",
46
+  "date_update": "Fri Oct 16 11:05:04 2015",
54 47
   "string": "{\"___\": \"\", \"fre\": \"Article\"}",
48
+  "sortcolumn": "rank",
49
+  "date_create": "Fri Oct 16 11:05:04 2015",
50
+  "help_text": "{\"___\": \"\"}",
51
+  "rank": 1,
52
+  "icon": "0",
55 53
   "class_id": 1,
56 54
   "fields_list": [
57 55
    7
58 56
   ],
59
-  "date_create": "Fri Oct 16 11:05:04 2015",
60
-  "rank": 1,
61
-  "date_update": "Fri Oct 16 11:05:04 2015"
57
+  "superiors_list": {
58
+   "parent": [
59
+    14
60
+   ]
61
+  }
62 62
  },
63 63
  "6": {
64
-  "superiors_list": {},
65
-  "sortcolumn": "rank",
66 64
   "component": "EmType",
67
-  "help_text": "{\"___\": \"\"}",
68
-  "icon": "0",
69 65
   "name": "personne",
66
+  "date_update": "Fri Oct 16 11:05:04 2015",
70 67
   "string": "{\"___\": \"\", \"fre\": \"Personne\"}",
68
+  "sortcolumn": "rank",
69
+  "date_create": "Fri Oct 16 11:05:04 2015",
70
+  "help_text": "{\"___\": \"\"}",
71
+  "rank": 1,
72
+  "icon": "0",
71 73
   "class_id": 2,
72 74
   "fields_list": [
73 75
    10
74 76
   ],
75
-  "date_create": "Fri Oct 16 11:05:04 2015",
76
-  "rank": 1,
77
-  "date_update": "Fri Oct 16 11:05:04 2015"
77
+  "superiors_list": {}
78 78
  },
79 79
  "7": {
80 80
   "nullable": false,
81
-  "rel_field_id": null,
82
-  "internal": false,
83
-  "optional": true,
81
+  "name": "soustitre",
84 82
   "date_update": "Fri Oct 16 11:05:04 2015",
85
-  "component": "EmField",
83
+  "string": "{\"___\": \"\", \"fre\": \"Sous-titre\"}",
86 84
   "help_text": "{\"___\": \"\"}",
85
+  "component": "EmField",
86
+  "date_create": "Fri Oct 16 11:05:04 2015",
87
+  "optional": true,
88
+  "rank": 5,
87 89
   "icon": "0",
88
-  "name": "soustitre",
89
-  "string": "{\"___\": \"\", \"fre\": \"Sous-titre\"}",
90
-  "class_id": 1,
91 90
   "fieldtype": "i18n",
92
-  "date_create": "Fri Oct 16 11:05:04 2015",
91
+  "rel_field_id": null,
92
+  "class_id": 1,
93 93
   "uniq": false,
94
-  "rank": 5
94
+  "internal": false
95 95
  },
96 96
  "9": {
97 97
   "nullable": true,
98
-  "rel_field_id": null,
99
-  "internal": false,
100
-  "optional": false,
98
+  "name": "nom",
101 99
   "date_update": "Fri Oct 16 11:05:04 2015",
102
-  "component": "EmField",
100
+  "string": "{\"___\": \"\", \"fre\": \"Nom\"}",
103 101
   "help_text": "{\"___\": \"\"}",
102
+  "component": "EmField",
103
+  "date_create": "Fri Oct 16 11:05:04 2015",
104
+  "optional": false,
105
+  "rank": 1,
104 106
   "icon": "0",
105
-  "name": "nom",
106
-  "string": "{\"___\": \"\", \"fre\": \"Nom\"}",
107
-  "class_id": 2,
108 107
   "fieldtype": "char",
109
-  "date_create": "Fri Oct 16 11:05:04 2015",
108
+  "rel_field_id": null,
109
+  "class_id": 2,
110 110
   "uniq": false,
111
-  "rank": 1
111
+  "internal": false
112 112
  },
113 113
  "10": {
114 114
   "nullable": true,
115
-  "rel_field_id": null,
116
-  "internal": false,
117
-  "optional": true,
115
+  "name": "prenom",
118 116
   "date_update": "Fri Oct 16 11:05:04 2015",
119
-  "component": "EmField",
117
+  "string": "{\"___\": \"\", \"fre\": \"Pr\\u00e9nom\"}",
120 118
   "help_text": "{\"___\": \"\"}",
119
+  "component": "EmField",
120
+  "date_create": "Fri Oct 16 11:05:04 2015",
121
+  "optional": true,
122
+  "rank": 3,
121 123
   "icon": "0",
122
-  "name": "prenom",
123
-  "string": "{\"___\": \"\", \"fre\": \"Pr\\u00e9nom\"}",
124
-  "class_id": 2,
125 124
   "fieldtype": "char",
126
-  "date_create": "Fri Oct 16 11:05:04 2015",
125
+  "rel_field_id": null,
126
+  "class_id": 2,
127 127
   "uniq": false,
128
-  "rank": 3
128
+  "internal": false
129 129
  },
130 130
  "11": {
131 131
   "nullable": true,
132
-  "rel_field_id": null,
133
-  "internal": false,
134
-  "optional": false,
132
+  "name": "auteur",
133
+  "uniq": false,
135 134
   "date_update": "Fri Oct 16 11:05:04 2015",
136
-  "component": "EmField",
135
+  "string": "{\"___\": \"\", \"fre\": \"Auteur\"}",
137 136
   "help_text": "{\"___\": \"\"}",
137
+  "component": "EmField",
138
+  "date_create": "Fri Oct 16 11:05:04 2015",
139
+  "optional": false,
140
+  "rank": 2,
138 141
   "icon": "0",
139
-  "name": "auteur",
140
-  "string": "{\"___\": \"\", \"fre\": \"Auteur\"}",
141
-  "class_id": 1,
142 142
   "fieldtype": "rel2type",
143
+  "rel_field_id": null,
144
+  "class_id": 1,
143 145
   "rel_to_type_id": 6,
144
-  "date_create": "Fri Oct 16 11:05:04 2015",
145
-  "uniq": false,
146
-  "rank": 2
146
+  "internal": false
147 147
  },
148 148
  "12": {
149 149
   "nullable": true,
150
-  "rel_field_id": 11,
151
-  "internal": false,
152
-  "optional": false,
150
+  "name": "adresse",
153 151
   "date_update": "Fri Oct 16 11:05:04 2015",
154
-  "component": "EmField",
152
+  "string": "{\"___\": \"\", \"fre\": \"Adresse\"}",
155 153
   "help_text": "{\"___\": \"\"}",
154
+  "component": "EmField",
155
+  "date_create": "Fri Oct 16 11:05:04 2015",
156
+  "optional": false,
157
+  "rank": 6,
156 158
   "icon": "0",
157
-  "name": "adresse",
158
-  "string": "{\"___\": \"\", \"fre\": \"Adresse\"}",
159
-  "class_id": 1,
160 159
   "fieldtype": "char",
161
-  "date_create": "Fri Oct 16 11:05:04 2015",
160
+  "rel_field_id": 11,
161
+  "class_id": 1,
162 162
   "uniq": false,
163
-  "rank": 6
163
+  "internal": false
164 164
  },
165 165
  "13": {
166
-  "help_text": "{\"___\": \"\"}",
167
-  "icon": "0",
168
-  "name": "publication",
169
-  "string": "{\"___\": \"\", \"fre\": \"Publication\"}",
170
-  "classtype": "entity",
171 166
   "date_create": "Fri Oct 16 11:05:04 2015",
167
+  "component": "EmClass",
168
+  "name": "publication",
169
+  "rank": 2,
172 170
   "sortcolumn": "rank",
173 171
   "date_update": "Fri Oct 16 11:05:04 2015",
174
-  "component": "EmClass",
175
-  "rank": 2
172
+  "classtype": "entity",
173
+  "icon": "0",
174
+  "string": "{\"___\": \"\", \"fre\": \"Publication\"}",
175
+  "help_text": "{\"___\": \"\"}"
176 176
  },
177 177
  "14": {
178
-  "superiors_list": {
179
-   "parent": [
180
-    14,
181
-    19
182
-   ]
183
-  },
184
-  "sortcolumn": "rank",
185 178
   "component": "EmType",
186
-  "help_text": "{\"___\": \"\"}",
187
-  "icon": "0",
188 179
   "name": "rubrique",
180
+  "date_update": "Fri Oct 16 11:05:04 2015",
189 181
   "string": "{\"___\": \"\", \"fre\": \"Rubrique\"}",
190
-  "class_id": 13,
191
-  "fields_list": [],
182
+  "sortcolumn": "rank",
192 183
   "date_create": "Fri Oct 16 11:05:04 2015",
184
+  "help_text": "{\"___\": \"\"}",
193 185
   "rank": 1,
194
-  "date_update": "Fri Oct 16 11:05:04 2015"
186
+  "icon": "0",
187
+  "class_id": 13,
188
+  "fields_list": [],
189
+  "superiors_list": {
190
+   "parent": [
191
+    14,
192
+    19
193
+   ]
194
+  }
195 195
  },
196 196
  "16": {
197 197
   "nullable": true,
198
-  "rel_field_id": null,
199
-  "internal": false,
200
-  "optional": false,
198
+  "name": "titre",
201 199
   "date_update": "Fri Oct 16 11:05:04 2015",
202
-  "component": "EmField",
200
+  "string": "{\"___\": \"\", \"fre\": \"Titre\"}",
203 201
   "help_text": "{\"___\": \"\"}",
202
+  "component": "EmField",
203
+  "date_create": "Fri Oct 16 11:05:04 2015",
204
+  "optional": false,
205
+  "rank": 1,
204 206
   "icon": "0",
205
-  "name": "titre",
206
-  "string": "{\"___\": \"\", \"fre\": \"Titre\"}",
207
-  "class_id": 13,
208 207
   "fieldtype": "char",
209
-  "date_create": "Fri Oct 16 11:05:04 2015",
208
+  "rel_field_id": null,
209
+  "class_id": 13,
210 210
   "uniq": false,
211
-  "rank": 1
211
+  "internal": false
212 212
  },
213 213
  "18": {
214 214
   "nullable": true,
215
-  "rel_field_id": null,
216
-  "internal": false,
217
-  "optional": true,
215
+  "name": "age",
218 216
   "date_update": "Fri Oct 16 11:05:04 2015",
219
-  "component": "EmField",
217
+  "string": "{\"___\": \"\", \"fre\": \"Age\"}",
220 218
   "help_text": "{\"___\": \"\"}",
219
+  "component": "EmField",
220
+  "date_create": "Fri Oct 16 11:05:04 2015",
221
+  "optional": true,
222
+  "rank": 5,
221 223
   "icon": "0",
222
-  "name": "age",
223
-  "string": "{\"___\": \"\", \"fre\": \"Age\"}",
224
-  "class_id": 2,
225 224
   "fieldtype": "char",
226
-  "date_create": "Fri Oct 16 11:05:04 2015",
225
+  "rel_field_id": null,
226
+  "class_id": 2,
227 227
   "uniq": false,
228
-  "rank": 5
228
+  "internal": false
229 229
  },
230 230
  "19": {
231
-  "superiors_list": {},
232
-  "sortcolumn": "rank",
233 231
   "component": "EmType",
234
-  "help_text": "{\"___\": \"\"}",
235
-  "icon": "0",
236 232
   "name": "numero",
233
+  "date_update": "Fri Oct 16 11:05:04 2015",
237 234
   "string": "{\"___\": \"\", \"fre\": \"Num\\u00e9ro\"}",
238
-  "class_id": 13,
239
-  "fields_list": [],
235
+  "sortcolumn": "rank",
240 236
   "date_create": "Fri Oct 16 11:05:04 2015",
237
+  "help_text": "{\"___\": \"\"}",
241 238
   "rank": 2,
242
-  "date_update": "Fri Oct 16 11:05:04 2015"
239
+  "icon": "0",
240
+  "class_id": 13,
241
+  "fields_list": [],
242
+  "superiors_list": {}
243 243
  },
244 244
  "21": {
245 245
   "nullable": true,
246
-  "rel_field_id": null,
247
-  "internal": false,
248
-  "optional": true,
246
+  "name": "bleu",
249 247
   "date_update": "Fri Oct 16 11:05:04 2015",
250
-  "component": "EmField",
248
+  "string": "{\"___\": \"\", \"fre\": \"Bleu\"}",
251 249
   "help_text": "{\"___\": \"\"}",
250
+  "component": "EmField",
251
+  "date_create": "Fri Oct 16 11:05:04 2015",
252
+  "optional": true,
253
+  "rank": 3,
252 254
   "icon": "0",
253
-  "name": "bleu",
254
-  "string": "{\"___\": \"\", \"fre\": \"Bleu\"}",
255
-  "class_id": 1,
256 255
   "fieldtype": "char",
257
-  "date_create": "Fri Oct 16 11:05:04 2015",
256
+  "rel_field_id": null,
257
+  "class_id": 1,
258 258
   "uniq": false,
259
-  "rank": 3
259
+  "internal": false
260 260
  },
261 261
  "23": {
262
-  "nullable": false,
263
-  "rel_field_id": null,
264 262
   "is_id_class": true,
265
-  "internal": "automatic",
266
-  "optional": false,
267
-  "immutable": true,
263
+  "name": "class_id",
268 264
   "component": "EmField",
265
+  "date_update": "Fri Oct 16 11:05:04 2015",
266
+  "string": "{\"___\": \"\", \"eng\": \"class identifier\", \"fre\": \"identifiant de la classe\"}",
269 267
   "help_text": "{\"___\": \"\"}",
270
-  "icon": "0",
271
-  "name": "class_id",
272
-  "string": "{\"___\": \"\"}",
273
-  "class_id": 1,
268
+  "optional": false,
269
+  "nullable": false,
270
+  "rel_field_id": null,
271
+  "rank": 4,
272
+  "internal": "automatic",
274 273
   "fieldtype": "emuid",
275
-  "date_update": "Fri Oct 16 11:05:04 2015",
274
+  "immutable": true,
276 275
   "date_create": "Fri Oct 16 11:05:04 2015",
276
+  "class_id": 1,
277 277
   "uniq": false,
278
-  "rank": 4
278
+  "icon": "0"
279 279
  },
280 280
  "24": {
281 281
   "nullable": true,
282
-  "rel_field_id": null,
283
-  "internal": "automatic",
284
-  "optional": false,
285
-  "fieldtype": "char",
286
-  "immutable": false,
282
+  "name": "string",
287 283
   "component": "EmField",
284
+  "date_update": "Fri Oct 16 11:05:04 2015",
285
+  "string": "{\"___\": \"\", \"eng\": \"String representation\", \"fre\": \"Repr\\u00e9sentation textuel\"}",
288 286
   "help_text": "{\"___\": \"\"}",
289
-  "icon": "0",
290
-  "name": "string",
291
-  "string": "{\"___\": \"\"}",
287
+  "internal": "automatic",
288
+  "date_create": "Fri Oct 16 11:05:04 2015",
289
+  "rel_field_id": null,
290
+  "rank": 7,
291
+  "immutable": false,
292
+  "fieldtype": "char",
292 293
   "class_id": 1,
294
+  "optional": false,
293 295
   "max_length": 128,
294
-  "date_update": "Fri Oct 16 11:05:04 2015",
295
-  "date_create": "Fri Oct 16 11:05:04 2015",
296 296
   "uniq": false,
297
-  "rank": 7
297
+  "icon": "0"
298 298
  },
299 299
  "25": {
300
-  "nullable": false,
301
-  "rel_field_id": null,
302 300
   "is_id_class": false,
303
-  "internal": "automatic",
304
-  "optional": false,
305
-  "immutable": true,
306
-  "component": "EmField",
307
-  "help_text": "{\"___\": \"\"}",
308
-  "icon": "0",
309 301
   "name": "type_id",
310
-  "string": "{\"___\": \"\"}",
311
-  "class_id": 1,
312
-  "fieldtype": "emuid",
313 302
   "date_update": "Fri Oct 16 11:05:04 2015",
303
+  "string": "{\"___\": \"\", \"eng\": \"type identifier\", \"fre\": \"identifiant de la type\"}",
304
+  "help_text": "{\"___\": \"\"}",
305
+  "component": "EmField",
314 306
   "date_create": "Fri Oct 16 11:05:04 2015",
307
+  "rel_field_id": null,
308
+  "rank": 8,
309
+  "internal": "automatic",
310
+  "fieldtype": "emuid",
311
+  "class_id": 1,
312
+  "optional": false,
313
+  "immutable": true,
314
+  "nullable": false,
315 315
   "uniq": false,
316
-  "rank": 8
316
+  "icon": "0"
317 317
  },
318 318
  "26": {
319 319
   "nullable": false,
320
+  "name": "lodel_id",
321
+  "date_update": "Fri Oct 16 11:05:04 2015",
322
+  "string": "{\"___\": \"\", \"eng\": \"lodel identifier\", \"fre\": \"identifiant lodel\"}",
323
+  "help_text": "{\"___\": \"\"}",
324
+  "component": "EmField",
325
+  "date_create": "Fri Oct 16 11:05:04 2015",
320 326
   "rel_field_id": null,
327
+  "rank": 9,
321 328
   "internal": "autosql",
322
-  "optional": false,
329
+  "fieldtype": "pk",
323 330
   "immutable": true,
324
-  "component": "EmField",
325
-  "help_text": "{\"___\": \"\"}",
326
-  "icon": "0",
327
-  "name": "lodel_id",
328
-  "string": "{\"___\": \"\"}",
331
+  "optional": false,
329 332
   "class_id": 1,
330
-  "fieldtype": "pk",
331
-  "date_update": "Fri Oct 16 11:05:04 2015",
332
-  "date_create": "Fri Oct 16 11:05:04 2015",
333 333
   "uniq": false,
334
-  "rank": 9
334
+  "icon": "0"
335 335
  },
336 336
  "28": {
337
-  "nullable": false,
338
-  "rel_field_id": null,
339 337
   "is_id_class": true,
340
-  "internal": "automatic",
341
-  "optional": false,
342
-  "immutable": true,
343
-  "component": "EmField",
344
-  "help_text": "{\"___\": \"\"}",
345
-  "icon": "0",
346 338
   "name": "class_id",
347
-  "string": "{\"___\": \"\"}",
348
-  "class_id": 2,
349
-  "fieldtype": "emuid",
350 339
   "date_update": "Fri Oct 16 11:05:04 2015",
340
+  "string": "{\"___\": \"\", \"eng\": \"class identifier\", \"fre\": \"identifiant de la classe\"}",
341
+  "help_text": "{\"___\": \"\"}",
342
+  "component": "EmField",
351 343
   "date_create": "Fri Oct 16 11:05:04 2015",
344
+  "rel_field_id": null,
345
+  "rank": 2,
346
+  "internal": "automatic",
347
+  "fieldtype": "emuid",
348
+  "class_id": 2,
349
+  "optional": false,
350
+  "immutable": true,
351
+  "nullable": false,
352 352
   "uniq": false,
353
-  "rank": 2
353
+  "icon": "0"
354 354
  },
355 355
  "29": {
356 356
   "nullable": true,
357
-  "rel_field_id": null,
358
-  "internal": "automatic",
359
-  "optional": false,
360
-  "fieldtype": "char",
361
-  "immutable": false,
357
+  "name": "string",
362 358
   "component": "EmField",
359
+  "date_update": "Fri Oct 16 11:05:04 2015",
360
+  "string": "{\"___\": \"\", \"eng\": \"String representation\", \"fre\": \"Repr\\u00e9sentation textuel\"}",
363 361
   "help_text": "{\"___\": \"\"}",
364
-  "icon": "0",
365
-  "name": "string",
366
-  "string": "{\"___\": \"\"}",
362
+  "internal": "automatic",
363
+  "date_create": "Fri Oct 16 11:05:04 2015",
364
+  "rel_field_id": null,
365
+  "rank": 4,
366
+  "immutable": false,
367
+  "fieldtype": "char",
367 368
   "class_id": 2,
369
+  "optional": false,
368 370
   "max_length": 128,
369
-  "date_update": "Fri Oct 16 11:05:04 2015",
370
-  "date_create": "Fri Oct 16 11:05:04 2015",
371 371
   "uniq": false,
372
-  "rank": 4
372
+  "icon": "0"
373 373
  },
374 374
  "30": {
375
-  "nullable": false,
376
-  "rel_field_id": null,
377 375
   "is_id_class": false,
378
-  "internal": "automatic",
379
-  "optional": false,
380
-  "immutable": true,
381
-  "component": "EmField",
382
-  "help_text": "{\"___\": \"\"}",
383
-  "icon": "0",
384 376
   "name": "type_id",
385
-  "string": "{\"___\": \"\"}",
386
-  "class_id": 2,
387
-  "fieldtype": "emuid",
388 377
   "date_update": "Fri Oct 16 11:05:04 2015",
378
+  "string": "{\"___\": \"\", \"eng\": \"type identifier\", \"fre\": \"identifiant de la type\"}",
379
+  "help_text": "{\"___\": \"\"}",
380
+  "component": "EmField",
389 381
   "date_create": "Fri Oct 16 11:05:04 2015",
382
+  "rel_field_id": null,
383
+  "rank": 6,
384
+  "internal": "automatic",
385
+  "fieldtype": "emuid",
386
+  "class_id": 2,
387
+  "optional": false,
388
+  "immutable": true,
389
+  "nullable": false,
390 390
   "uniq": false,
391
-  "rank": 6
391
+  "icon": "0"
392 392
  },
393 393
  "31": {
394 394
   "nullable": false,
395
+  "name": "lodel_id",
396
+  "date_update": "Fri Oct 16 11:05:04 2015",
397
+  "string": "{\"___\": \"\", \"eng\": \"lodel identifier\", \"fre\": \"identifiant lodel\"}",
398
+  "help_text": "{\"___\": \"\"}",
399
+  "component": "EmField",
400
+  "date_create": "Fri Oct 16 11:05:04 2015",
395 401
   "rel_field_id": null,
402
+  "rank": 7,
396 403
   "internal": "autosql",
397
-  "optional": false,
404
+  "fieldtype": "pk",
398 405
   "immutable": true,
399
-  "component": "EmField",
400
-  "help_text": "{\"___\": \"\"}",
401
-  "icon": "0",
402
-  "name": "lodel_id",
403
-  "string": "{\"___\": \"\"}",
406
+  "optional": false,
404 407
   "class_id": 2,
405
-  "fieldtype": "pk",
406
-  "date_update": "Fri Oct 16 11:05:04 2015",
407
-  "date_create": "Fri Oct 16 11:05:04 2015",
408 408
   "uniq": false,
409
-  "rank": 7
409
+  "icon": "0"
410 410
  },
411 411
  "33": {
412
-  "nullable": false,
413
-  "rel_field_id": null,
414 412
   "is_id_class": true,
415
-  "internal": "automatic",
416
-  "optional": false,
417
-  "immutable": true,
418
-  "component": "EmField",
419
-  "help_text": "{\"___\": \"\"}",
420
-  "icon": "0",
421 413
   "name": "class_id",
422
-  "string": "{\"___\": \"\"}",
423
-  "class_id": 13,
424
-  "fieldtype": "emuid",
425 414
   "date_update": "Fri Oct 16 11:05:04 2015",
415
+  "string": "{\"___\": \"\", \"eng\": \"class identifier\", \"fre\": \"identifiant de la classe\"}",
416
+  "help_text": "{\"___\": \"\"}",
417
+  "component": "EmField",
426 418
   "date_create": "Fri Oct 16 11:05:04 2015",
419
+  "rel_field_id": null,
420
+  "rank": 2,
421
+  "internal": "automatic",
422
+  "fieldtype": "emuid",
423
+  "class_id": 13,
424
+  "optional": false,
425
+  "immutable": true,
426
+  "nullable": false,
427 427
   "uniq": false,
428
-  "rank": 2
428
+  "icon": "0"
429 429
  },
430 430
  "34": {
431 431
   "nullable": true,
432
-  "rel_field_id": null,
433
-  "internal": "automatic",
434
-  "optional": false,
435
-  "fieldtype": "char",
436
-  "immutable": false,
432
+  "name": "string",
437 433
   "component": "EmField",
434
+  "date_update": "Fri Oct 16 11:05:04 2015",
435
+  "string": "{\"___\": \"\", \"eng\": \"String representation\", \"fre\": \"Repr\\u00e9sentation textuel\"}",
438 436
   "help_text": "{\"___\": \"\"}",
439
-  "icon": "0",
440
-  "name": "string",
441
-  "string": "{\"___\": \"\"}",
437
+  "internal": "automatic",
438
+  "date_create": "Fri Oct 16 11:05:04 2015",
439
+  "rel_field_id": null,
440
+  "rank": 3,
441
+  "immutable": false,
442
+  "fieldtype": "char",
442 443
   "class_id": 13,
444
+  "optional": false,
443 445
   "max_length": 128,
444
-  "date_update": "Fri Oct 16 11:05:04 2015",
445
-  "date_create": "Fri Oct 16 11:05:04 2015",
446 446
   "uniq": false,
447
-  "rank": 3
447
+  "icon": "0"
448 448
  },
449 449
  "35": {
450
-  "nullable": false,
451
-  "rel_field_id": null,
452 450
   "is_id_class": false,
453
-  "internal": "automatic",
454
-  "optional": false,
455
-  "immutable": true,
456
-  "component": "EmField",
457
-  "help_text": "{\"___\": \"\"}",
458
-  "icon": "0",
459 451
   "name": "type_id",
460
-  "string": "{\"___\": \"\"}",
461
-  "class_id": 13,
462
-  "fieldtype": "emuid",
463 452
   "date_update": "Fri Oct 16 11:05:04 2015",
453
+  "string": "{\"___\": \"\", \"eng\": \"type identifier\", \"fre\": \"identifiant de la type\"}",
454
+  "help_text": "{\"___\": \"\"}",
455
+  "component": "EmField",
464 456
   "date_create": "Fri Oct 16 11:05:04 2015",
457
+  "rel_field_id": null,
458
+  "rank": 4,
459
+  "internal": "automatic",
460
+  "fieldtype": "emuid",
461
+  "class_id": 13,
462
+  "optional": false,
463
+  "immutable": true,
464
+  "nullable": false,
465 465
   "uniq": false,
466
-  "rank": 4
466
+  "icon": "0"
467 467
  },
468 468
  "36": {
469 469
   "nullable": false,
470
+  "name": "lodel_id",
471
+  "date_update": "Fri Oct 16 11:05:04 2015",
472
+  "string": "{\"___\": \"\", \"eng\": \"lodel identifier\", \"fre\": \"identifiant lodel\"}",
473
+  "help_text": "{\"___\": \"\"}",
474
+  "component": "EmField",
475
+  "date_create": "Fri Oct 16 11:05:04 2015",
470 476
   "rel_field_id": null,
477
+  "rank": 5,
471 478
   "internal": "autosql",
472
-  "optional": false,
479
+  "fieldtype": "pk",
473 480
   "immutable": true,
474
-  "component": "EmField",
475
-  "help_text": "{\"___\": \"\"}",
476
-  "icon": "0",
477
-  "name": "lodel_id",
478
-  "string": "{\"___\": \"\"}",
481
+  "optional": false,
479 482
   "class_id": 13,
480
-  "fieldtype": "pk",
481
-  "date_update": "Fri Oct 16 11:05:04 2015",
482
-  "date_create": "Fri Oct 16 11:05:04 2015",
483 483
   "uniq": false,
484
-  "rank": 5
484
+  "icon": "0"
485 485
  },
486 486
  "37": {
487 487
   "nullable": false,
488
-  "rel_field_id": null,
489
-  "uniq": false,
490
-  "internal": "autosql",
491
-  "optional": false,
488
+  "name": "modification_date",
492 489
   "date_update": "Wed Nov  4 10:52:13 2015",
493
-  "component": "EmField",
490
+  "string": "{\"___\": \"\", \"eng\": \"Modification date\", \"fre\": \"Date de modification\"}",
494 491
   "help_text": "{\"___\": \"\"}",
495
-  "icon": "0",
496
-  "name": "modification_date",
497
-  "string": "{\"___\": \"\"}",
492
+  "component": "EmField",
498 493
   "date_create": "Wed Nov  4 10:52:13 2015",
494
+  "optional": false,
499 495
   "class_id": 1,
496
+  "rank": 10,
497
+  "internal": "autosql",
500 498
   "fieldtype": "datetime",
499
+  "now_on_create": true,
500
+  "rel_field_id": null,
501 501
   "immutable": true,
502
+  "uniq": false,
502 503
   "now_on_update": true,
503
-  "now_on_create": true,
504
-  "rank": 10
504
+  "icon": "0"
505 505
  },
506 506
  "38": {
507 507
   "nullable": false,
508
-  "rel_field_id": null,
509
-  "internal": "autosql",
510
-  "optional": false,
511
-  "immutable": true,
512
-  "component": "EmField",
513
-  "help_text": "{\"___\": \"\"}",
514
-  "icon": "0",
515 508
   "name": "creation_date",
516
-  "string": "{\"___\": \"\"}",
517
-  "class_id": 1,
518
-  "fieldtype": "datetime",
509
+  "component": "EmField",
519 510
   "date_update": "Wed Nov  4 10:52:13 2015",
511
+  "string": "{\"___\": \"\", \"eng\": \"Creation date\", \"fre\": \"Date de cr\\u00e9ation\"}",
512
+  "help_text": "{\"___\": \"\"}",
513
+  "internal": "autosql",
520 514
   "date_create": "Wed Nov  4 10:52:13 2015",
521
-  "uniq": false,
515
+  "rel_field_id": null,
516
+  "rank": 11,
517
+  "immutable": true,
518
+  "fieldtype": "datetime",
522 519
   "now_on_create": true,
523
-  "rank": 11
520
+  "optional": false,
521
+  "class_id": 1,
522
+  "uniq": false,
523
+  "icon": "0"
524 524
  },
525 525
  "39": {
526 526
   "nullable": false,
527
-  "rel_field_id": null,
528
-  "uniq": false,
529
-  "internal": "autosql",
530
-  "optional": false,
527
+  "name": "modification_date",
531 528
   "date_update": "Wed Nov  4 10:52:13 2015",
532
-  "component": "EmField",
529
+  "string": "{\"___\": \"\", \"eng\": \"Modification date\", \"fre\": \"Date de modification\"}",
533 530
   "help_text": "{\"___\": \"\"}",
534
-  "icon": "0",
535
-  "name": "modification_date",
536
-  "string": "{\"___\": \"\"}",
531
+  "component": "EmField",
537 532
   "date_create": "Wed Nov  4 10:52:13 2015",
533
+  "optional": false,
538 534
   "class_id": 2,
535
+  "rank": 8,
536
+  "internal": "autosql",
539 537
   "fieldtype": "datetime",
538
+  "now_on_create": true,
539
+  "rel_field_id": null,
540 540
   "immutable": true,
541
+  "uniq": false,
541 542
   "now_on_update": true,
542
-  "now_on_create": true,
543
-  "rank": 8
543
+  "icon": "0"
544 544
  },
545 545
  "40": {
546 546
   "nullable": false,
547
-  "rel_field_id": null,
548
-  "internal": "autosql",
549
-  "optional": false,
550
-  "immutable": true,
551
-  "component": "EmField",
552
-  "help_text": "{\"___\": \"\"}",
553
-  "icon": "0",
554 547
   "name": "creation_date",
555
-  "string": "{\"___\": \"\"}",
556
-  "class_id": 2,
557
-  "fieldtype": "datetime",
548
+  "component": "EmField",
558 549
   "date_update": "Wed Nov  4 10:52:13 2015",
550
+  "string": "{\"___\": \"\", \"eng\": \"Creation date\", \"fre\": \"Date de cr\\u00e9ation\"}",
551
+  "help_text": "{\"___\": \"\"}",
552
+  "internal": "autosql",
559 553
   "date_create": "Wed Nov  4 10:52:13 2015",
560
-  "uniq": false,
554
+  "rel_field_id": null,
555
+  "rank": 9,
556
+  "immutable": true,
557
+  "fieldtype": "datetime",
561 558
   "now_on_create": true,
562
-  "rank": 9
559
+  "optional": false,
560
+  "class_id": 2,
561
+  "uniq": false,
562
+  "icon": "0"
563 563
  },
564 564
  "41": {
565 565
   "nullable": false,
566
-  "rel_field_id": null,
567
-  "uniq": false,
568
-  "internal": "autosql",
569
-  "optional": false,
566
+  "name": "modification_date",
570 567
   "date_update": "Wed Nov  4 10:52:13 2015",
571
-  "component": "EmField",
568
+  "string": "{\"___\": \"\", \"eng\": \"Modification date\", \"fre\": \"Date de modification\"}",
572 569
   "help_text": "{\"___\": \"\"}",
573
-  "icon": "0",
574
-  "name": "modification_date",
575
-  "string": "{\"___\": \"\"}",
570
+  "component": "EmField",
576 571
   "date_create": "Wed Nov  4 10:52:13 2015",
572
+  "optional": false,
577 573
   "class_id": 13,
574
+  "rank": 6,
575
+  "internal": "autosql",
578 576
   "fieldtype": "datetime",
577
+  "now_on_create": true,
578
+  "rel_field_id": null,
579 579
   "immutable": true,
580
+  "uniq": false,
580 581
   "now_on_update": true,
581
-  "now_on_create": true,
582
-  "rank": 6
582
+  "icon": "0"
583 583
  },
584 584
  "42": {
585 585
   "nullable": false,
586
-  "rel_field_id": null,
587
-  "internal": "autosql",
588
-  "optional": false,
589
-  "immutable": true,
590
-  "component": "EmField",
591
-  "help_text": "{\"___\": \"\"}",
592
-  "icon": "0",
593 586
   "name": "creation_date",
594
-  "string": "{\"___\": \"\"}",
595
-  "class_id": 13,
596
-  "fieldtype": "datetime",
587
+  "component": "EmField",
597 588
   "date_update": "Wed Nov  4 10:52:13 2015",
589
+  "string": "{\"___\": \"\", \"eng\": \"Creation date\", \"fre\": \"Date de cr\\u00e9ation\"}",
590
+  "help_text": "{\"___\": \"\"}",
591
+  "internal": "autosql",
598 592
   "date_create": "Wed Nov  4 10:52:13 2015",
599
-  "uniq": false,
593
+  "rel_field_id": null,
594
+  "rank": 7,
595
+  "immutable": true,
596
+  "fieldtype": "datetime",
600 597
   "now_on_create": true,
601
-  "rank": 7
598
+  "optional": false,
599
+  "class_id": 13,
600
+  "uniq": false,
601
+  "icon": "0"
602 602
  }
603 603
 }

+ 5
- 4
leapi/lefactory.py View File

@@ -115,16 +115,17 @@ class {classname}(LeRel2Type):
115 115
         for rfield in [ f for f in emclass.fields() if f.fieldtype == 'rel2type']:
116 116
             fti = rfield.fieldtype_instance()
117 117
             cls_linked_types[rfield.name] = _LeCrud.name2classname(model.component(fti.rel_to_type_id).name)
118
-        ml_fieldnames = dict()
119 118
         # Populating fieldtype attr
120 119
         for field in emclass.fields(relational = False):
121 120
             if field.name not in EditorialModel.classtypes.common_fields.keys() or not ( hasattr(field, 'immutable') and field.immutable):
122 121
                 self.needed_fieldtypes |= set([field.fieldtype])
123 122
                 cls_fields[field.name] = LeFactory.fieldtype_construct_from_field(field)
124 123
                 fti = field.fieldtype_instance()
125
-                if field.string.get() == '':
126
-                    field.string.set_default(field.name)
127
-                ml_fieldnames[field.name] = field.string.dumps()
124
+        ml_fieldnames = dict()
125
+        for field in emclass.fields():
126
+            if field.string.get() == '':
127
+                field.string.set_default(field.name)
128
+            ml_fieldnames[field.name] = field.string.dumps()
128 129
 
129 130
         return """
130 131
 #Initialisation of {name} class attributes

Loading…
Cancel
Save