Browse Source

em_test.py and examples/em_test.pickle updates

Yann Weber 8 years ago
parent
commit
a9b4a1bfae
3 changed files with 6 additions and 3 deletions
  1. 5
    2
      em_test.py
  2. BIN
      examples/em_test.pickle
  3. 1
    1
      settings.py

+ 5
- 2
em_test.py View File

@@ -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')

BIN
examples/em_test.pickle View File


+ 1
- 1
settings.py View File

@@ -33,7 +33,7 @@ em_graph_output = '/tmp/em_%s_graph.png'
33 33
 
34 34
 logging = {
35 35
     'stderr': {
36
-        'level': 'DEBUG',
36
+        'level': 'INFO',
37 37
         'context': False,
38 38
     },
39 39
     'logfile': {

Loading…
Cancel
Save