mirror of
https://github.com/yweber/lodel2.git
synced 2026-03-14 15:22:02 +01:00
Em: draft for fieldgroup
This commit is contained in:
parent
89d45ab799
commit
55b030800f
2 changed files with 7 additions and 0 deletions
|
|
@ -4,12 +4,15 @@
|
|||
# Manage instance of an editorial model
|
||||
|
||||
from EditorialModel.classes import EmClass
|
||||
from EditorialModel.fieldgroups import EmFieldGroup
|
||||
|
||||
|
||||
|
||||
## Manages the Editorial Model
|
||||
class Model(object):
|
||||
|
||||
componentClass = EmClass
|
||||
componentFieldGroup = EmFieldGroup
|
||||
|
||||
## Constructor
|
||||
#
|
||||
|
|
@ -30,6 +33,7 @@ class Model(object):
|
|||
if cls:
|
||||
component['uid'] = uid
|
||||
self.uids[uid] = cls(component)
|
||||
print (self.uids[uid])
|
||||
|
||||
## Saves data using the current backend
|
||||
def save(self):
|
||||
|
|
|
|||
|
|
@ -4,5 +4,8 @@
|
|||
},
|
||||
"2" : {
|
||||
"component":"Class", "name":"publications", "string":"{\"fre\":\"Rubriques\"}", "help":"{}", "rank":"1", "date_update":"", "date_create":"", "classtype":"entity", "icon":"0", "sortcolumn":"rank"
|
||||
},
|
||||
"3" : {
|
||||
"component":"FieldGroup", "name":"metadonne", "string":"{\"fre\":\"Rubriques\"}", "help":"{}", "rank":"1", "date_update":"", "date_create":"", "class_id":"1"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue