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 705B

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