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.

__init__.py 779B

123456789101112131415161718192021222324
  1. from lodel.context import LodelContext
  2. LodelContext.expose_modules(globals(), {
  3. 'lodel.settings.validator': ['SettingValidator']})
  4. __plugin_name__ = "dummy"
  5. __version__ = '0.0.1' #or __version__ = [0,0,1]
  6. __loader__ = "main.py"
  7. __confspec__ = "confspec.py"
  8. __author__ = "Lodel2 dev team"
  9. __fullname__ = "Dummy plugin"
  10. __name__ = 'dummy'
  11. __plugin_type__ = 'extension'
  12. ##@brief This methods allow plugin writter to write some checks
  13. #
  14. #@return True if checks are OK else return a string with a reason
  15. def _activate():
  16. import leapi_dyncode
  17. print("Testing dynamic objects : ")
  18. print("Object : ", leapi_dyncode.Object)
  19. print("Publication : ", leapi_dyncode.Publication)
  20. print("Publication fields : ", leapi_dyncode.Publication.fieldnames())
  21. return True