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.

confspec.py 717B

1234567891011121314151617181920
  1. # -*- coding: utf-8 -*-
  2. from lodel.context import LodelContext
  3. LodelContext.expose_modules(globals(), {
  4. 'lodel.settings.validator': ['SettingValidator']})
  5. ##@brief Mongodb datasource plugin confspec
  6. #@ingroup plugin_mongodb_datasource
  7. #
  8. #Describe mongodb plugin configuration. Keys are :
  9. CONFSPEC = {
  10. 'lodel2.datasource.mongodb_datasource.*':{
  11. 'read_only': (False, SettingValidator('bool')),
  12. 'host': ('localhost', SettingValidator('host')),
  13. 'port': (None, SettingValidator('string', none_is_valid = True)),
  14. 'db_name':('lodel', SettingValidator('string')),
  15. 'username': (None, SettingValidator('string')),
  16. 'password': (None, SettingValidator('string'))
  17. }
  18. }