|
@@ -1,5 +1,6 @@
|
1
|
1
|
#-*- coding: utf-8 -*-
|
2
|
2
|
|
|
3
|
+import loader
|
3
|
4
|
from lodel.editorial_model.components import *
|
4
|
5
|
from lodel.editorial_model.exceptions import *
|
5
|
6
|
from lodel.editorial_model.model import EditorialModel
|
|
@@ -170,7 +171,7 @@ collection.new_field( 'publications',
|
170
|
171
|
back_reference = ('publication', 'collection'))
|
171
|
172
|
|
172
|
173
|
# Classe publication
|
173
|
|
-pulication = em.new_class( 'publication',
|
|
174
|
+publication = em.new_class( 'publication',
|
174
|
175
|
display_name = 'Publication',
|
175
|
176
|
group = editorial_group,
|
176
|
177
|
abstract = False,
|
|
@@ -200,7 +201,7 @@ subsection = em.new_class( 'subsection',
|
200
|
201
|
section.new_field( 'childs',
|
201
|
202
|
display_name = 'Next section',
|
202
|
203
|
group = editorial_group,
|
203
|
|
- data_hander = 'hierarch',
|
|
204
|
+ data_handler = 'hierarch',
|
204
|
205
|
allowed_class = [subsection],
|
205
|
206
|
back_reference = ('subsection', 'parent'))
|
206
|
207
|
|