|
@@ -2,7 +2,7 @@
|
2
|
2
|
|
3
|
3
|
import EditorialModel
|
4
|
4
|
from EditorialModel import fieldtypes
|
5
|
|
-from EditorialModel.fieldtypes import naturerelation, leo, datetime, dictionary, rank, namerelation, pk, bool, i18n, char, integer, emuid
|
|
5
|
+from EditorialModel.fieldtypes import pk, dictionary, integer, leo, rank, bool, char, emuid, datetime, namerelation, naturerelation, i18n
|
6
|
6
|
from Lodel.utils.mlstring import MlString
|
7
|
7
|
|
8
|
8
|
import leapi
|
|
@@ -12,27 +12,23 @@ import leapi.lerelation
|
12
|
12
|
from leapi.leclass import _LeClass
|
13
|
13
|
from leapi.letype import _LeType
|
14
|
14
|
|
15
|
|
-import DataSource.MySQL.leapidatasource
|
16
|
|
-
|
17
|
|
-
|
18
|
15
|
## @brief _LeCrud concret class
|
19
|
16
|
# @see leapi.lecrud._LeCrud
|
20
|
17
|
class LeCrud(leapi.lecrud._LeCrud):
|
21
|
|
- _datasource = DataSource.MySQL.leapidatasource.LeDataSourceSQL(**{})
|
22
|
18
|
_uid_fieldtype = None
|
23
|
19
|
|
24
|
20
|
## @brief _LeObject concret class
|
25
|
21
|
# @see leapi.leobject._LeObject
|
26
|
22
|
class LeObject(LeCrud, leapi.leobject._LeObject):
|
27
|
|
- _me_uid = {32: 'Emclass', 33: 'Emtype', 34: 'Emfield', 22: 'Emcomponent', 1: '_Editorialmodel', 8: '_Classtype', 15: '_Hierarchy', 29: 'Classtype', 30: 'Hierarchyoptions', 31: 'Editorialmodel'}
|
|
23
|
+ _me_uid = {1: '_Editorialmodel', 36: 'Classtype', 37: 'Hierarchyoptions', 38: 'Editorialmodel', 39: 'Emclass', 40: 'Emtype', 41: 'Emfield', 42: 'Emmodification', 15: '_Hierarchy', 8: '_Classtype', 22: 'Emcomponent', 29: '_Emmodification'}
|
28
|
24
|
_me_uid_field_names = ('class_id', 'type_id')
|
29
|
|
- _uid_fieldtype = { 'lodel_id': EditorialModel.fieldtypes.pk.EmFieldType(**{'uniq': False, 'nullable': False, 'immutable': True, 'internal': 'autosql', 'string': '{"___": "", "fre": "identifiant lodel", "eng": "lodel identifier"}'}) }
|
|
25
|
+ _uid_fieldtype = { 'lodel_id': EditorialModel.fieldtypes.pk.EmFieldType(**{'immutable': True, 'string': '{"___": "", "fre": "identifiant lodel", "eng": "lodel identifier"}', 'nullable': False, 'uniq': False, 'internal': 'autosql'}) }
|
30
|
26
|
_leo_fieldtypes = {
|
31
|
|
- 'class_id': EditorialModel.fieldtypes.emuid.EmFieldType(**{'uniq': False, 'nullable': False, 'immutable': True, 'internal': 'automatic', 'string': '{"___": "", "fre": "identifiant de la classe", "eng": "class identifier"}', 'is_id_class': True}),
|
32
|
|
- 'type_id': EditorialModel.fieldtypes.emuid.EmFieldType(**{'uniq': False, 'nullable': False, 'immutable': True, 'internal': 'automatic', 'string': '{"___": "", "fre": "identifiant de la type", "eng": "type identifier"}', 'is_id_class': False}),
|
33
|
|
- 'modification_date': EditorialModel.fieldtypes.datetime.EmFieldType(**{'uniq': False, 'internal': 'autosql', 'now_on_update': True, 'immutable': True, 'nullable': False, 'now_on_create': True, 'string': '{"___": "", "fre": "Date de modification", "eng": "Modification date"}'}),
|
|
27
|
+ 'class_id': EditorialModel.fieldtypes.emuid.EmFieldType(**{'immutable': True, 'is_id_class': True, 'string': '{"___": "", "fre": "identifiant de la classe", "eng": "class identifier"}', 'nullable': False, 'uniq': False, 'internal': 'automatic'}),
|
|
28
|
+ 'type_id': EditorialModel.fieldtypes.emuid.EmFieldType(**{'immutable': True, 'is_id_class': False, 'string': '{"___": "", "fre": "identifiant de la type", "eng": "type identifier"}', 'nullable': False, 'uniq': False, 'internal': 'automatic'}),
|
34
|
29
|
'string': None,
|
35
|
|
- 'creation_date': EditorialModel.fieldtypes.datetime.EmFieldType(**{'uniq': False, 'internal': 'autosql', 'now_on_create': True, 'immutable': True, 'nullable': False, 'string': '{"___": "", "fre": "Date de création", "eng": "Creation date"}'})
|
|
30
|
+ 'creation_date': EditorialModel.fieldtypes.datetime.EmFieldType(**{'immutable': True, 'string': '{"___": "", "fre": "Date de création", "eng": "Creation date"}', 'now_on_create': True, 'nullable': False, 'uniq': False, 'internal': 'autosql'}),
|
|
31
|
+ 'modification_date': EditorialModel.fieldtypes.datetime.EmFieldType(**{'immutable': True, 'string': '{"___": "", "fre": "Date de modification", "eng": "Modification date"}', 'now_on_create': True, 'nullable': False, 'uniq': False, 'internal': 'autosql', 'now_on_update': True})
|
36
|
32
|
}
|
37
|
33
|
|
38
|
34
|
## @brief _LeRelation concret class
|
|
@@ -40,12 +36,12 @@ class LeObject(LeCrud, leapi.leobject._LeObject):
|
40
|
36
|
class LeRelation(LeCrud, leapi.lerelation._LeRelation):
|
41
|
37
|
_uid_fieldtype = { 'id_relation': EditorialModel.fieldtypes.pk.EmFieldType(**{'immutable': True, 'internal': 'autosql'}) }
|
42
|
38
|
_rel_fieldtypes = {
|
43
|
|
- 'relation_name': EditorialModel.fieldtypes.namerelation.EmFieldType(**{'max_length': 128, 'immutable': True}),
|
44
|
|
- 'nature': EditorialModel.fieldtypes.naturerelation.EmFieldType(**{'immutable': True}),
|
45
|
|
- 'superior': EditorialModel.fieldtypes.leo.EmFieldType(**{'immutable': True, 'superior': True}),
|
46
|
39
|
'depth': EditorialModel.fieldtypes.integer.EmFieldType(**{'immutable': True, 'internal': 'automatic'}),
|
|
40
|
+ 'subordinate': EditorialModel.fieldtypes.leo.EmFieldType(**{'immutable': True, 'superior': False}),
|
|
41
|
+ 'superior': EditorialModel.fieldtypes.leo.EmFieldType(**{'immutable': True, 'superior': True}),
|
|
42
|
+ 'relation_name': EditorialModel.fieldtypes.namerelation.EmFieldType(**{'immutable': True, 'max_length': 128}),
|
47
|
43
|
'rank': EditorialModel.fieldtypes.rank.EmFieldType(**{'immutable': True, 'internal': 'automatic'}),
|
48
|
|
- 'subordinate': EditorialModel.fieldtypes.leo.EmFieldType(**{'immutable': True, 'superior': False})
|
|
44
|
+ 'nature': EditorialModel.fieldtypes.naturerelation.EmFieldType(**{'immutable': True})
|
49
|
45
|
}
|
50
|
46
|
## WARNING !!!! OBSOLETE ! DON'T USE IT
|
51
|
47
|
_superior_field_name = 'superior'
|
|
@@ -92,51 +88,65 @@ class Emcomponent(LeClass, LeObject):
|
92
|
88
|
ml_string = MlString('EmComponent')
|
93
|
89
|
|
94
|
90
|
|
|
91
|
+## @brief EmClass _Emmodification LeClass child class
|
|
92
|
+# @see leapi.leclass.LeClass
|
|
93
|
+class _Emmodification(LeClass, LeObject):
|
|
94
|
+ _class_id = 29
|
|
95
|
+ ml_string = MlString('_EmModification')
|
|
96
|
+
|
|
97
|
+
|
95
|
98
|
## @brief EmType Classtype LeType child class
|
96
|
99
|
# @see leobject::letype::LeType
|
97
|
100
|
class Classtype(LeType, _Classtype):
|
98
|
|
- _type_id = 29
|
|
101
|
+ _type_id = 36
|
99
|
102
|
ml_string = MlString('ClassType')
|
100
|
103
|
|
101
|
104
|
|
102
|
105
|
## @brief EmType Hierarchyoptions LeType child class
|
103
|
106
|
# @see leobject::letype::LeType
|
104
|
107
|
class Hierarchyoptions(LeType, _Hierarchy):
|
105
|
|
- _type_id = 30
|
|
108
|
+ _type_id = 37
|
106
|
109
|
ml_string = MlString('HierarchyOptions')
|
107
|
110
|
|
108
|
111
|
|
109
|
112
|
## @brief EmType Editorialmodel LeType child class
|
110
|
113
|
# @see leobject::letype::LeType
|
111
|
114
|
class Editorialmodel(LeType, _Editorialmodel):
|
112
|
|
- _type_id = 31
|
|
115
|
+ _type_id = 38
|
113
|
116
|
ml_string = MlString('EditorialModel')
|
114
|
117
|
|
115
|
118
|
|
116
|
119
|
## @brief EmType Emclass LeType child class
|
117
|
120
|
# @see leobject::letype::LeType
|
118
|
121
|
class Emclass(LeType, Emcomponent):
|
119
|
|
- _type_id = 32
|
|
122
|
+ _type_id = 39
|
120
|
123
|
ml_string = MlString('EmClass')
|
121
|
124
|
|
122
|
125
|
|
|
126
|
+## @brief EmType Emmodification LeType child class
|
|
127
|
+# @see leobject::letype::LeType
|
|
128
|
+class Emmodification(LeType, _Emmodification):
|
|
129
|
+ _type_id = 42
|
|
130
|
+ ml_string = MlString('EmModification')
|
|
131
|
+
|
|
132
|
+
|
123
|
133
|
## @brief EmType Emtype LeType child class
|
124
|
134
|
# @see leobject::letype::LeType
|
125
|
135
|
class Emtype(LeType, Emcomponent):
|
126
|
|
- _type_id = 33
|
|
136
|
+ _type_id = 40
|
127
|
137
|
ml_string = MlString('EmType')
|
128
|
138
|
|
129
|
139
|
|
130
|
140
|
## @brief EmType Emfield LeType child class
|
131
|
141
|
# @see leobject::letype::LeType
|
132
|
142
|
class Emfield(LeType, Emcomponent):
|
133
|
|
- _type_id = 34
|
|
143
|
+ _type_id = 41
|
134
|
144
|
ml_string = MlString('EmField')
|
135
|
145
|
|
136
|
146
|
|
137
|
147
|
class Rel_ClasstypeHierarchyoptionsHierarchy_Specs(LeRel2Type):
|
138
|
148
|
_rel_attr_fieldtypes = {
|
139
|
|
- 'nature': EditorialModel.fieldtypes.char.EmFieldType(**{'internal': False, 'max_length': 10, 'uniq': False, 'nullable': False})
|
|
149
|
+ 'nature': EditorialModel.fieldtypes.char.EmFieldType(**{'uniq': False, 'nullable': False, 'max_length': 10, 'internal': False})
|
140
|
150
|
}
|
141
|
151
|
_superior_cls = _Classtype
|
142
|
152
|
_subordinate_cls = Hierarchyoptions
|
|
@@ -177,7 +187,7 @@ class RelEmcomponentEmfieldSelected_Field(LeRel2Type):
|
177
|
187
|
|
178
|
188
|
class RelEmcomponentEmtypeSuperiors(LeRel2Type):
|
179
|
189
|
_rel_attr_fieldtypes = {
|
180
|
|
- 'nature': EditorialModel.fieldtypes.char.EmFieldType(**{'internal': False, 'max_length': '10', 'uniq': False, 'nullable': False})
|
|
190
|
+ 'nature': EditorialModel.fieldtypes.char.EmFieldType(**{'uniq': False, 'nullable': False, 'max_length': 10, 'internal': False})
|
181
|
191
|
}
|
182
|
192
|
_superior_cls = Emcomponent
|
183
|
193
|
_subordinate_cls = Emtype
|
|
@@ -194,19 +204,19 @@ class RelEmcomponentEmfieldRel_Field(LeRel2Type):
|
194
|
204
|
|
195
|
205
|
#Initialisation of _Editorialmodel class attributes
|
196
|
206
|
_Editorialmodel._fieldtypes = {
|
197
|
|
- 'description': EditorialModel.fieldtypes.char.EmFieldType(**{'internal': False, 'max_length': 4096, 'uniq': False, 'nullable': False}),
|
198
|
|
- 'string': EditorialModel.fieldtypes.char.EmFieldType(**{'internal': 'automatic', 'max_length': 128, 'immutable': False, 'uniq': False, 'nullable': True}),
|
199
|
|
- 'name': EditorialModel.fieldtypes.char.EmFieldType(**{'internal': False, 'max_length': 56, 'uniq': False, 'nullable': False})
|
|
207
|
+ 'description': EditorialModel.fieldtypes.char.EmFieldType(**{'uniq': False, 'nullable': False, 'max_length': 4096, 'internal': False}),
|
|
208
|
+ 'string': EditorialModel.fieldtypes.char.EmFieldType(**{'immutable': False, 'nullable': True, 'max_length': 128, 'internal': 'automatic', 'uniq': False}),
|
|
209
|
+ 'name': EditorialModel.fieldtypes.char.EmFieldType(**{'uniq': False, 'nullable': False, 'max_length': 56, 'internal': False})
|
200
|
210
|
}
|
201
|
211
|
_Editorialmodel.ml_fields_strings = {
|
202
|
212
|
'class_id': MlString({"___": "class_id", "eng": "class identifier", "fre": "identifiant de la classe"}),
|
203
|
213
|
'type_id': MlString({"___": "type_id", "eng": "type identifier", "fre": "identifiant de la type"}),
|
204
|
|
- 'name': MlString({"___": "name"}),
|
205
|
|
- 'lodel_id': MlString({"___": "lodel_id", "eng": "lodel identifier", "fre": "identifiant lodel"}),
|
206
|
|
- 'modification_date': MlString({"___": "modification_date", "eng": "Modification date", "fre": "Date de modification"}),
|
207
|
214
|
'string': MlString({"___": "string", "eng": "String representation", "fre": "Repr\u00e9sentation textuel"}),
|
208
|
215
|
'creation_date': MlString({"___": "creation_date", "eng": "Creation date", "fre": "Date de cr\u00e9ation"}),
|
209
|
|
- 'description': MlString({"___": "description"})
|
|
216
|
+ 'lodel_id': MlString({"___": "lodel_id", "eng": "lodel identifier", "fre": "identifiant lodel"}),
|
|
217
|
+ 'name': MlString({"___": "name"}),
|
|
218
|
+ 'description': MlString({"___": "description"}),
|
|
219
|
+ 'modification_date': MlString({"___": "modification_date", "eng": "Modification date", "fre": "Date de modification"})
|
210
|
220
|
}
|
211
|
221
|
_Editorialmodel._linked_types = {
|
212
|
222
|
}
|
|
@@ -214,19 +224,19 @@ _Editorialmodel._classtype = 'entity'
|
214
|
224
|
|
215
|
225
|
#Initialisation of _Classtype class attributes
|
216
|
226
|
_Classtype._fieldtypes = {
|
217
|
|
- 'string': EditorialModel.fieldtypes.char.EmFieldType(**{'internal': 'automatic', 'max_length': 128, 'immutable': False, 'uniq': False, 'nullable': True}),
|
218
|
|
- 'name': EditorialModel.fieldtypes.char.EmFieldType(**{'internal': False, 'max_length': 56, 'uniq': False, 'nullable': False})
|
|
227
|
+ 'string': EditorialModel.fieldtypes.char.EmFieldType(**{'immutable': False, 'nullable': True, 'max_length': 128, 'internal': 'automatic', 'uniq': False}),
|
|
228
|
+ 'name': EditorialModel.fieldtypes.char.EmFieldType(**{'uniq': False, 'nullable': False, 'max_length': 56, 'internal': False})
|
219
|
229
|
}
|
220
|
230
|
_Classtype.ml_fields_strings = {
|
221
|
231
|
'class_id': MlString({"___": "class_id", "eng": "class identifier", "fre": "identifiant de la classe"}),
|
|
232
|
+ 'hierarchy_specs': MlString({"___": "hierarchy_specs"}),
|
|
233
|
+ 'nature': MlString({"___": "nature"}),
|
222
|
234
|
'type_id': MlString({"___": "type_id", "eng": "type identifier", "fre": "identifiant de la type"}),
|
223
|
|
- 'name': MlString({"___": "name"}),
|
224
|
|
- 'lodel_id': MlString({"___": "lodel_id", "eng": "lodel identifier", "fre": "identifiant lodel"}),
|
225
|
|
- 'modification_date': MlString({"___": "modification_date", "eng": "Modification date", "fre": "Date de modification"}),
|
226
|
235
|
'string': MlString({"___": "string", "eng": "String representation", "fre": "Repr\u00e9sentation textuel"}),
|
227
|
236
|
'creation_date': MlString({"___": "creation_date", "eng": "Creation date", "fre": "Date de cr\u00e9ation"}),
|
228
|
|
- 'hierarchy_specs': MlString({"___": "hierarchy_specs"}),
|
229
|
|
- 'nature': MlString({"___": "nature"})
|
|
237
|
+ 'lodel_id': MlString({"___": "lodel_id", "eng": "lodel identifier", "fre": "identifiant lodel"}),
|
|
238
|
+ 'name': MlString({"___": "name"}),
|
|
239
|
+ 'modification_date': MlString({"___": "modification_date", "eng": "Modification date", "fre": "Date de modification"})
|
230
|
240
|
}
|
231
|
241
|
_Classtype._linked_types = {
|
232
|
242
|
'hierarchy_specs': Hierarchyoptions
|
|
@@ -235,23 +245,23 @@ _Classtype._classtype = 'entity'
|
235
|
245
|
|
236
|
246
|
#Initialisation of _Hierarchy class attributes
|
237
|
247
|
_Hierarchy._fieldtypes = {
|
238
|
|
- 'string': EditorialModel.fieldtypes.char.EmFieldType(**{'internal': 'automatic', 'max_length': 128, 'immutable': False, 'uniq': False, 'nullable': True}),
|
239
|
|
- 'attach': EditorialModel.fieldtypes.char.EmFieldType(**{'internal': False, 'max_length': 10, 'uniq': False, 'nullable': False}),
|
240
|
|
- 'maxdepth': EditorialModel.fieldtypes.integer.EmFieldType(**{'internal': False, 'uniq': False, 'nullable': False}),
|
241
|
|
- 'maxchildren': EditorialModel.fieldtypes.integer.EmFieldType(**{'internal': False, 'uniq': False, 'nullable': False}),
|
242
|
|
- 'automatic': EditorialModel.fieldtypes.bool.EmFieldType(**{'internal': False, 'uniq': False, 'nullable': False})
|
|
248
|
+ 'automatic': EditorialModel.fieldtypes.bool.EmFieldType(**{'uniq': False, 'nullable': False, 'internal': False}),
|
|
249
|
+ 'maxchildren': EditorialModel.fieldtypes.integer.EmFieldType(**{'uniq': False, 'nullable': False, 'internal': False}),
|
|
250
|
+ 'maxdepth': EditorialModel.fieldtypes.integer.EmFieldType(**{'uniq': False, 'nullable': False, 'internal': False}),
|
|
251
|
+ 'attach': EditorialModel.fieldtypes.char.EmFieldType(**{'uniq': False, 'nullable': False, 'max_length': 10, 'internal': False}),
|
|
252
|
+ 'string': EditorialModel.fieldtypes.char.EmFieldType(**{'immutable': False, 'nullable': True, 'max_length': 128, 'internal': 'automatic', 'uniq': False})
|
243
|
253
|
}
|
244
|
254
|
_Hierarchy.ml_fields_strings = {
|
245
|
|
- 'maxchildren': MlString({"___": "maxchildren"}),
|
246
|
255
|
'class_id': MlString({"___": "class_id", "eng": "class identifier", "fre": "identifiant de la classe"}),
|
247
|
|
- 'type_id': MlString({"___": "type_id", "eng": "type identifier", "fre": "identifiant de la type"}),
|
248
|
|
- 'lodel_id': MlString({"___": "lodel_id", "eng": "lodel identifier", "fre": "identifiant lodel"}),
|
249
|
|
- 'modification_date': MlString({"___": "modification_date", "eng": "Modification date", "fre": "Date de modification"}),
|
250
|
256
|
'automatic': MlString({"___": "automatic"}),
|
|
257
|
+ 'maxdepth': MlString({"___": "maxdepth"}),
|
|
258
|
+ 'maxchildren': MlString({"___": "maxchildren"}),
|
|
259
|
+ 'type_id': MlString({"___": "type_id", "eng": "type identifier", "fre": "identifiant de la type"}),
|
251
|
260
|
'string': MlString({"___": "string", "eng": "String representation", "fre": "Repr\u00e9sentation textuel"}),
|
252
|
261
|
'creation_date': MlString({"___": "creation_date", "eng": "Creation date", "fre": "Date de cr\u00e9ation"}),
|
|
262
|
+ 'lodel_id': MlString({"___": "lodel_id", "eng": "lodel identifier", "fre": "identifiant lodel"}),
|
253
|
263
|
'attach': MlString({"___": "attach"}),
|
254
|
|
- 'maxdepth': MlString({"___": "maxdepth"})
|
|
264
|
+ 'modification_date': MlString({"___": "modification_date", "eng": "Modification date", "fre": "Date de modification"})
|
255
|
265
|
}
|
256
|
266
|
_Hierarchy._linked_types = {
|
257
|
267
|
}
|
|
@@ -259,47 +269,61 @@ _Hierarchy._classtype = 'entity'
|
259
|
269
|
|
260
|
270
|
#Initialisation of Emcomponent class attributes
|
261
|
271
|
Emcomponent._fieldtypes = {
|
262
|
|
- 'fieldtype': EditorialModel.fieldtypes.char.EmFieldType(**{'internal': False, 'uniq': False, 'nullable': False}),
|
263
|
|
- 'name': EditorialModel.fieldtypes.char.EmFieldType(**{'internal': False, 'max_length': 56, 'uniq': False, 'nullable': False}),
|
264
|
|
- 'string': EditorialModel.fieldtypes.char.EmFieldType(**{'internal': 'automatic', 'max_length': 128, 'immutable': False, 'uniq': False, 'nullable': True}),
|
265
|
|
- 'help_text': EditorialModel.fieldtypes.i18n.EmFieldType(**{'internal': False, 'uniq': False, 'nullable': False}),
|
266
|
|
- 'fieldtype_options': EditorialModel.fieldtypes.dictionary.EmFieldType(**{'internal': False, 'uniq': False, 'nullable': False}),
|
267
|
|
- 'date_update': EditorialModel.fieldtypes.datetime.EmFieldType(**{'now_on_update': True, 'nullable': False, 'uniq': False, 'internal': False}),
|
268
|
|
- 'date_create': EditorialModel.fieldtypes.datetime.EmFieldType(**{'now_on_create': True, 'internal': False, 'uniq': False, 'nullable': False}),
|
269
|
|
- 'rank': EditorialModel.fieldtypes.integer.EmFieldType(**{'internal': False, 'uniq': False, 'nullable': False})
|
|
272
|
+ 'date_update': EditorialModel.fieldtypes.datetime.EmFieldType(**{'now_on_update': True, 'nullable': False, 'uniq': False, 'internal': 'automatic'}),
|
|
273
|
+ 'fieldtype': EditorialModel.fieldtypes.char.EmFieldType(**{'uniq': False, 'nullable': False, 'internal': False}),
|
|
274
|
+ 'string': EditorialModel.fieldtypes.char.EmFieldType(**{'immutable': False, 'nullable': True, 'max_length': 128, 'internal': 'automatic', 'uniq': False}),
|
|
275
|
+ 'name': EditorialModel.fieldtypes.char.EmFieldType(**{'uniq': False, 'nullable': False, 'max_length': 56, 'internal': False}),
|
|
276
|
+ 'help_text': EditorialModel.fieldtypes.i18n.EmFieldType(**{'uniq': False, 'nullable': False, 'internal': False, 'default': {'en': 'no help'}}),
|
|
277
|
+ 'fieldtype_options': EditorialModel.fieldtypes.dictionary.EmFieldType(**{'uniq': False, 'nullable': False, 'internal': False}),
|
|
278
|
+ 'date_create': EditorialModel.fieldtypes.datetime.EmFieldType(**{'uniq': False, 'nullable': False, 'internal': 'automatic', 'now_on_create': True})
|
270
|
279
|
}
|
271
|
280
|
Emcomponent.ml_fields_strings = {
|
272
|
|
- 'superiors': MlString({"___": "superiors"}),
|
273
|
|
- 'creation_date': MlString({"___": "creation_date", "eng": "Creation date", "fre": "Date de cr\u00e9ation"}),
|
274
|
|
- 'name': MlString({"___": "name"}),
|
275
|
|
- 'lodel_id': MlString({"___": "lodel_id", "eng": "lodel identifier", "fre": "identifiant lodel"}),
|
276
|
|
- 'modification_date': MlString({"___": "modification_date", "eng": "Modification date", "fre": "Date de modification"}),
|
277
|
|
- 'parent_class': MlString({"___": "parent_class"}),
|
278
|
|
- 'fieldtype_options': MlString({"___": "fieldtype_options"}),
|
279
|
|
- 'help_text': MlString({"___": "help_text"}),
|
280
|
|
- 'rank': MlString({"___": "rank"}),
|
281
|
|
- 'sort_column': MlString({"___": "sort_column"}),
|
282
|
|
- 'fieldtype': MlString({"___": "fieldtype"}),
|
283
|
281
|
'class_id': MlString({"___": "class_id", "eng": "class identifier", "fre": "identifiant de la classe"}),
|
284
|
|
- 'selected_field': MlString({"___": "selected_field"}),
|
|
282
|
+ 'classtype': MlString({"___": "classtype"}),
|
285
|
283
|
'rel_field': MlString({"___": "rel_field"}),
|
|
284
|
+ 'superiors': MlString({"___": "superiors"}),
|
286
|
285
|
'string': MlString({"___": "string", "eng": "String representation", "fre": "Repr\u00e9sentation textuel"}),
|
287
|
286
|
'type_id': MlString({"___": "type_id", "eng": "type identifier", "fre": "identifiant de la type"}),
|
288
|
|
- 'classtype': MlString({"___": "classtype"}),
|
|
287
|
+ 'fieldtype': MlString({"___": "fieldtype"}),
|
|
288
|
+ 'creation_date': MlString({"___": "creation_date", "eng": "Creation date", "fre": "Date de cr\u00e9ation"}),
|
|
289
|
+ 'selected_field': MlString({"___": "selected_field"}),
|
|
290
|
+ 'fieldtype_options': MlString({"___": "fieldtype_options"}),
|
289
|
291
|
'date_create': MlString({"___": "date_create"}),
|
290
|
|
- 'nature': MlString({"___": "nature"}),
|
291
|
|
- 'date_update': MlString({"___": "date_update"})
|
|
292
|
+ 'date_update': MlString({"___": "date_update"}),
|
|
293
|
+ 'modification_date': MlString({"___": "modification_date", "eng": "Modification date", "fre": "Date de modification"}),
|
|
294
|
+ 'name': MlString({"___": "name"}),
|
|
295
|
+ 'lodel_id': MlString({"___": "lodel_id", "eng": "lodel identifier", "fre": "identifiant lodel"}),
|
|
296
|
+ 'sort_column': MlString({"___": "sort_column"}),
|
|
297
|
+ 'help_text': MlString({"___": "help_text"}),
|
|
298
|
+ 'parent_class': MlString({"___": "parent_class"}),
|
|
299
|
+ 'nature': MlString({"___": "nature"})
|
292
|
300
|
}
|
293
|
301
|
Emcomponent._linked_types = {
|
|
302
|
+ 'classtype': Classtype,
|
294
|
303
|
'superiors': Emtype,
|
295
|
304
|
'rel_field': Emfield,
|
296
|
|
- 'classtype': Classtype,
|
297
|
|
- 'parent_class': Emclass,
|
298
|
305
|
'sort_column': Emfield,
|
299
|
|
- 'selected_field': Emfield
|
|
306
|
+ 'selected_field': Emfield,
|
|
307
|
+ 'parent_class': Emclass
|
300
|
308
|
}
|
301
|
309
|
Emcomponent._classtype = 'entity'
|
302
|
310
|
|
|
311
|
+#Initialisation of _Emmodification class attributes
|
|
312
|
+_Emmodification._fieldtypes = {
|
|
313
|
+ 'string': EditorialModel.fieldtypes.char.EmFieldType(**{'immutable': False, 'nullable': True, 'max_length': 128, 'internal': 'automatic', 'uniq': False})
|
|
314
|
+}
|
|
315
|
+_Emmodification.ml_fields_strings = {
|
|
316
|
+ 'class_id': MlString({"___": "class_id", "eng": "class identifier", "fre": "identifiant de la classe"}),
|
|
317
|
+ 'type_id': MlString({"___": "type_id", "eng": "type identifier", "fre": "identifiant de la type"}),
|
|
318
|
+ 'string': MlString({"___": "string", "eng": "String representation", "fre": "Repr\u00e9sentation textuel"}),
|
|
319
|
+ 'creation_date': MlString({"___": "creation_date", "eng": "Creation date", "fre": "Date de cr\u00e9ation"}),
|
|
320
|
+ 'lodel_id': MlString({"___": "lodel_id", "eng": "lodel identifier", "fre": "identifiant lodel"}),
|
|
321
|
+ 'modification_date': MlString({"___": "modification_date", "eng": "Modification date", "fre": "Date de modification"})
|
|
322
|
+}
|
|
323
|
+_Emmodification._linked_types = {
|
|
324
|
+}
|
|
325
|
+_Emmodification._classtype = 'entity'
|
|
326
|
+
|
303
|
327
|
#Initialisation of Classtype class attributes
|
304
|
328
|
Classtype._fields = ['name']
|
305
|
329
|
Classtype._superiors = {}
|
|
@@ -316,19 +340,24 @@ Editorialmodel._superiors = {}
|
316
|
340
|
Editorialmodel._leclass = _Editorialmodel
|
317
|
341
|
|
318
|
342
|
#Initialisation of Emclass class attributes
|
319
|
|
-Emclass._fields = ['name', 'help_text', 'date_update', 'date_create', 'rank']
|
|
343
|
+Emclass._fields = ['name', 'help_text', 'date_update', 'date_create']
|
320
|
344
|
Emclass._superiors = {'parent': [Editorialmodel]}
|
321
|
345
|
Emclass._leclass = Emcomponent
|
322
|
346
|
|
|
347
|
+#Initialisation of Emmodification class attributes
|
|
348
|
+Emmodification._fields = []
|
|
349
|
+Emmodification._superiors = {}
|
|
350
|
+Emmodification._leclass = _Emmodification
|
|
351
|
+
|
323
|
352
|
#Initialisation of Emtype class attributes
|
324
|
|
-Emtype._fields = ['name', 'help_text', 'date_update', 'date_create', 'rank']
|
|
353
|
+Emtype._fields = ['name', 'help_text', 'date_update', 'date_create']
|
325
|
354
|
Emtype._superiors = {'parent': [Emclass]}
|
326
|
355
|
Emtype._leclass = Emcomponent
|
327
|
356
|
|
328
|
357
|
#Initialisation of Emfield class attributes
|
329
|
|
-Emfield._fields = ['name', 'help_text', 'date_update', 'date_create', 'rank', 'fieldtype', 'fieldtype_options']
|
|
358
|
+Emfield._fields = ['name', 'help_text', 'date_update', 'date_create', 'fieldtype', 'fieldtype_options']
|
330
|
359
|
Emfield._superiors = {'parent': [Emtype]}
|
331
|
360
|
Emfield._leclass = Emcomponent
|
332
|
361
|
|
333
|
362
|
## @brief Dict for getting LeClass and LeType child classes given an EM uid
|
334
|
|
-LeObject._me_uid = {32: Emclass, 1: _Editorialmodel, 34: Emfield, 22: Emcomponent, 33: Emtype, 8: _Classtype, 31: Editorialmodel, 29: Classtype, 30: Hierarchyoptions, 15: _Hierarchy}
|
|
363
|
+LeObject._me_uid = {1: _Editorialmodel, 36: Classtype, 37: Hierarchyoptions, 38: Editorialmodel, 39: Emclass, 40: Emtype, 41: Emfield, 42: Emmodification, 15: _Hierarchy, 8: _Classtype, 22: Emcomponent, 29: _Emmodification}
|