Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

__init__.py 675B

123456789101112131415161718192021
  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. ##@brief This methods allow plugin writter to write some checks
  10. #
  11. #@return True if checks are OK else return a string with a reason
  12. def _activate():
  13. import leapi_dyncode
  14. print("Testing dynamic objects : ")
  15. print("Object : ", leapi_dyncode.Object)
  16. print("Publication : ", leapi_dyncode.Publication)
  17. print("Publication fields : ", leapi_dyncode.Publication.fieldnames())
  18. return True