|
@@ -1,7 +1,6 @@
|
1
|
1
|
#-*- coding: utf-8 -*-
|
2
|
2
|
|
3
|
3
|
from EditorialModel.components import EmComponent
|
4
|
|
-from EditorialModel.fieldtypes import EmField_boolean, EmField_char, EmField_integer, EmField_icon # , get_field_type
|
5
|
4
|
|
6
|
5
|
|
7
|
6
|
## EmField (Class)
|
|
@@ -13,7 +12,7 @@ class EmField(EmComponent):
|
13
|
12
|
|
14
|
13
|
## Instanciate a new EmField
|
15
|
14
|
# @todo define and test type for icon and fieldtype
|
16
|
|
- def __init__(self, model, uid, name, fieldgroup_id, fieldtype, optional = False, internal = False, rel_to_type_id = None, rel_field_id = None, icon = '0', string = None, help_text = None, date_update = None, date_create = None, rank = None):
|
|
15
|
+ def __init__(self, model, uid, name, fieldgroup_id, fieldtype, optional=False, internal=False, rel_to_type_id=None, rel_field_id=None, icon='0', string=None, help_text=None, date_update=None, date_create=None, rank=None):
|
17
|
16
|
|
18
|
17
|
self.fieldgroup_id = fieldgroup_id
|
19
|
18
|
self.check_type('fieldgroup_id', int)
|