mirror of
https://github.com/yweber/lodel2.git
synced 2025-11-13 01:19:16 +01:00
Theorically all of those imports were tested by unit testing, but we've got no inssurance about that. And even if unit tests had check for syntax errors, all pieces of code were not tested. We cannot be sure that an import was missed or forgotten...
20 lines
717 B
Python
20 lines
717 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from lodel.context import LodelContext
|
|
LodelContext.expose_modules(globals(), {
|
|
'lodel.settings.validator': ['SettingValidator']})
|
|
|
|
##@brief Mongodb datasource plugin confspec
|
|
#@ingroup plugin_mongodb_datasource
|
|
#
|
|
#Describe mongodb plugin configuration. Keys are :
|
|
CONFSPEC = {
|
|
'lodel2.datasource.mongodb_datasource.*':{
|
|
'read_only': (False, SettingValidator('bool')),
|
|
'host': ('localhost', SettingValidator('host')),
|
|
'port': (None, SettingValidator('string', none_is_valid = True)),
|
|
'db_name':('lodel', SettingValidator('string')),
|
|
'username': (None, SettingValidator('string')),
|
|
'password': (None, SettingValidator('string'))
|
|
}
|
|
}
|