Browse Source

New class MlNamedObject

prieto 8 years ago
parent
commit
8844197c57
2 changed files with 15 additions and 0 deletions
  1. 0
    0
      lodel/mlnamedobject/__init__.py
  2. 15
    0
      lodel/mlnamedobject/mlnamedobject.py

+ 0
- 0
lodel/mlnamedobject/__init__.py View File


+ 15
- 0
lodel/mlnamedobject/mlnamedobject.py View File

@@ -0,0 +1,15 @@
1
+#-*- coding:utf-8 -*-
2
+
3
+from lodel.context import LodelContext
4
+LodelContext.expose_modules(globals(), {
5
+    'lodel.utils.mlstring': ['MlString'],
6
+    'lodel.logger': 'logger',
7
+    'lodel.settings': ['Settings'],
8
+    'lodel.settings.utils': ['SettingsError']})
9
+
10
+class MlNamedObject(object):
11
+    
12
+    def __init__(self, display_name, help_text):
13
+        self.display_name = MlString(display_name)
14
+        self.help_text = MlString(help_text)
15
+        

Loading…
Cancel
Save