暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }