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

New class MlNamedObject

This commit is contained in:
prieto 2017-02-02 14:51:49 +01:00
commit 8844197c57
2 changed files with 15 additions and 0 deletions

View file

View file

@ -0,0 +1,15 @@
#-*- coding:utf-8 -*-
from lodel.context import LodelContext
LodelContext.expose_modules(globals(), {
'lodel.utils.mlstring': ['MlString'],
'lodel.logger': 'logger',
'lodel.settings': ['Settings'],
'lodel.settings.utils': ['SettingsError']})
class MlNamedObject(object):
def __init__(self, display_name, help_text):
self.display_name = MlString(display_name)
self.help_text = MlString(help_text)