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.

extensions.py 731B

12345678910111213141516171819202122232425
  1. from lodel.context import LodelContext
  2. LodelContext.expose_modules(globals(), {
  3. 'lodel.plugin.plugins': ['Plugin'],
  4. 'lodel.plugin.exceptions': ['PluginError', 'PluginTypeError',
  5. 'LodelScriptError', 'DatasourcePluginError'],
  6. 'lodel.validator.validator': ['Validator']})
  7. _glob_typename = 'extension'
  8. class Extension(Plugin):
  9. _plist_confspecs = {
  10. 'section': 'lodel2',
  11. 'key': 'extensions',
  12. 'default': None,
  13. 'validator': Validator(
  14. 'custom_list', none_is_valid = True,
  15. validator_name = 'plugin', validator_kwargs = {
  16. 'ptype': _glob_typename,
  17. 'none_is_valid': False})
  18. }
  19. _type_conf_name = _glob_typename