1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-10-31 11:39:02 +01:00

Inheritance of MlNamedObject

This commit is contained in:
prieto 2017-02-02 14:58:24 +01:00
commit 3abf402cfb
2 changed files with 5 additions and 3 deletions

View file

@ -12,6 +12,7 @@ import hashlib
from lodel.context import LodelContext
LodelContext.expose_modules(globals(), {
'lodel.utils.mlstring': ['MlString'],
'lodel.mlnamedobject': ['MlNamedObject'],
'lodel.settings': ['Settings'],
'lodel.editorial_model.exceptions': ['EditorialModelError', 'assert_edit'],
'lodel.leapi.leobject': ['CLASS_ID_FIELDNAME']})
@ -20,7 +21,7 @@ LodelContext.expose_modules(globals(), {
# @see EmClass EmField
# @todo forbid '.' in uid
#@ingroup lodel2_em
class EmComponent(object):
class EmComponent(MlNamedObject):
##@brief Instanciate an EmComponent
# @param uid str : uniq identifier
@ -268,7 +269,7 @@ class EmField(EmComponent):
##@brief Handles functionnal group of EmComponents
#@ingroup lodel2_em
class EmGroup(object):
class EmGroup(MlNamedObject):
##@brief Create a new EmGroup
# @note you should NEVER call the constructor yourself. Use Model.add_group instead

View file

@ -7,6 +7,7 @@ import copy
from lodel.context import LodelContext
LodelContext.expose_modules(globals(), {
'lodel.utils.mlstring': ['MlString'],
'lodel.mlnamedobject': ['MlNamedObject'],
'lodel.logger': 'logger',
'lodel.settings': ['Settings'],
'lodel.settings.utils': ['SettingsError'],
@ -16,7 +17,7 @@ LodelContext.expose_modules(globals(), {
##@brief Describe an editorial model
#@ingroup lodel2_em
class EditorialModel(object):
class EditorialModel(MlNamedObject):
##@brief Create a new editorial model
# @param name MlString|str|dict : the editorial model name