Brak opisu
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 636B

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