No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mlnamedobject.py 599B

123456789101112131415161718
  1. #-*- coding:utf-8 -*-
  2. from lodel.context import LodelContext
  3. LodelContext.expose_modules(globals(), {
  4. 'lodel.utils.mlstring': ['MlString']})
  5. # @package lodel.mlnamedobject Lodel2 description of objects module
  6. #
  7. # Display name and Description of a lodel2 object
  8. # @brief Class allows display name and help text for lodel2 objects and fields
  9. class MlNamedObject(object):
  10. def __init__(self, display_name=None, help_text=None):
  11. self.display_name = None if display_name is None else MlString(display_name)
  12. self.help_text = None if help_text is None else MlString(help_text)