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 503B

1234567891011121314
  1. # -*- coding: utf-8 -*-
  2. from lodel.settings.validator import SettingValidator
  3. CONFSPEC = {
  4. 'lodel2.datasource.mongodb_datasource.*':{
  5. 'read_only': (False, SettingValidator('bool')),
  6. 'host': ('localhost', SettingValidator('host')),
  7. 'port': (None, SettingValidator('string', none_is_valid = True)),
  8. 'db_name':('lodel', SettingValidator('string')),
  9. 'username': (None, SettingValidator('string')),
  10. 'password': (None, SettingValidator('string'))
  11. }
  12. }