|
@@ -24,7 +24,7 @@ em_object.new_field( 'lodel_id',
|
24
|
24
|
display_name = 'Lodel identifier',
|
25
|
25
|
help_text = 'Uniq ID that identify every lodel object',
|
26
|
26
|
group = base_group,
|
27
|
|
- data_handler = 'integer',
|
|
27
|
+ data_handler = 'uniqid',
|
28
|
28
|
internal = True,
|
29
|
29
|
)
|
30
|
30
|
em_object.new_field( 'help_text',
|
|
@@ -135,6 +135,7 @@ text = em.new_class( 'text',
|
135
|
135
|
help_text = 'Abstract class that represent texts',
|
136
|
136
|
group = editorial_group,
|
137
|
137
|
abstract = True,
|
|
138
|
+ parents = entitie,
|
138
|
139
|
)
|
139
|
140
|
|
140
|
141
|
text.new_field( 'title',
|
|
@@ -156,6 +157,7 @@ collection = em.new_class( 'collection',
|
156
|
157
|
display_name = 'Collection',
|
157
|
158
|
group = editorial_group,
|
158
|
159
|
abstract = True,
|
|
160
|
+ parents = entitie,
|
159
|
161
|
)
|
160
|
162
|
collection.new_field( 'title',
|
161
|
163
|
display_name = 'Title',
|
|
@@ -187,6 +189,7 @@ text_person = em.new_class( 'text_person',
|
187
|
189
|
},
|
188
|
190
|
group = editorial_person_group,
|
189
|
191
|
abstract = True,
|
|
192
|
+ parents = entitie,
|
190
|
193
|
)
|
191
|
194
|
bref_textperson_text = text_person.new_field( 'text',
|
192
|
195
|
display_name = {
|
|
@@ -246,4 +249,4 @@ text.new_field( 'linked_persons',
|
246
|
249
|
)
|
247
|
250
|
"""
|
248
|
251
|
|
249
|
|
-em.save('picklefile', filename = '/tmp/em_test.pickle')
|
|
252
|
+em.save('picklefile', filename = 'examples/em_test.pickle')
|