mirror of
https://github.com/yweber/lodel2.git
synced 2025-12-03 17:26:54 +01:00
- Enables connections saving & auto cleaning - Preparing possibility to declare a datasource as read only
14 lines
480 B
Python
14 lines
480 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from lodel.settings.validator import SettingValidator
|
|
|
|
CONFSPEC = {
|
|
'lodel2.datasource.mongodb_datasource.*':{
|
|
'read_only': (True, SettingValidator('bool')),
|
|
'host': ('localhost', SettingValidator('host')),
|
|
'port': (None, SettingValidator('string')),
|
|
'db_name':('lodel', SettingValidator('string')),
|
|
'username': (None, SettingValidator('string')),
|
|
'password': (None, SettingValidator('string'))
|
|
}
|
|
}
|