1
0
Fork 0
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:
ArnAud 2015-07-16 17:21:44 +02:00
commit 55b030800f
2 changed files with 7 additions and 0 deletions

View file

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

View file

@ -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"
}
}