Yann Weber
2ce93cc452
Enhancement in settings_loader.py : better support for empty values
when a value is composed only with space tabs etc consider it as None
8 gadus atpakaļ
Yann Weber
9d273e6fef
Add a new sttings validator + use it
- Written a new custom_list validator, it takes another validator name as argument (in order to validate items of list)
- Using it to validate list of plugins names
8 gadus atpakaļ
Yann Weber
4507b22fad
Bugfixes on SettingValidator class
8 gadus atpakaļ
Yann Weber
b5a6adc3a8
Enhancement of distclean target
Now when running distclean ALL files generated by the ./bootstrap && ./configure && make are deleted.
Maybe it's not a good idea because it's not the purpose of distclean target...
8 gadus atpakaļ
Yann Weber
21af2bbcbc
Autotools chain enhancement + solves #137
Using $pkgpythondir instead of $pythondir in Makefile.am
Solves a bug that put installed files in site-packages instead of dist-packages on debian
8 gadus atpakaļ
Yann Weber
8316ab82ff
Configure autotools for distributing lodel2
IMPORTANT : tests are broken. See details below
A new lodel/buildconf.py.ini file created. It will be transformed to a lodel/buildconf.py file by ./configure .
This file goal is to store build time constant (for the moment the presence of pymongo).
You have to build lodel2 before being able to run the tests.
8 gadus atpakaļ
Yann Weber
4acd6f8fbe
Deleted debug messages
8 gadus atpakaļ
Yann Weber
77be17f296
Solves #123 Add a plugin type validator
- The validator is written and added to all Plugin sublcasses confspec
- Adds the capabilities to give args to validator (here we give the expected type)
8 gadus atpakaļ
Yann Weber
1453cf49f9
Plug together Ui <-> client <-> session <-> plugin + bugfixes
Created a new class LodelSession to handle session datas
Created an automatic wrapper to acces to session handler plugin function throug SessionHandlerPlugin class methods
Bugfixes done for plugins. The plugin type is store in __plugin_type___ and not in __type__
8 gadus atpakaļ
Yann Weber
585cc61dff
Quick & dirty interfacePlugin implementation + small import bugfixes
Import bugfixes in settings validator. Hooks must be imported in validatore definition to avoid circular import failure
8 gadus atpakaļ
Yann Weber
76e386e321
Implements SessionHandlerPlugin ExtensionsPlugin + settings preload
Implements both Plugin child classes handling extensions and session handling.
Modified the settings plugin preload piece of code. It is now adapted to the new plugins organisation.
Each Plugin child classes provides a confspec indicating where the plugin list is stored in configuration.
8 gadus atpakaļ
Yann Weber
6a18cf7fa2
Begin implementation of new plugin list retrieval
8 gadus atpakaļ
Roland Haroutiounian
ccb643a4aa
bug fix on validator (syntax)
8 gadus atpakaļ
m.orban
9ae7855c50
Modified singleton sessionHandler: from __new__ to __init__ checked
8 gadus atpakaļ
m.orban
0e7b5828fa
Added a settings validator for plugin
8 gadus atpakaļ
Roland Haroutiounian
441be193a9
Bug fix on the settings validator module
8 gadus atpakaļ
m.orban
81e732a6af
Added inheritance class SessionHandler (Plugin is the base-class
8 gadus atpakaļ
Yann Weber
16ef4d9d3f
Settings started detection mechanism enhancement + early log message creation (for plugins & settings)
8 gadus atpakaļ
Yann Weber
82e9d3c9aa
Allow early utilisation of lodel.logger ( #121 )
http://redmine.labocleo.org/issues/121
8 gadus atpakaļ
Roland Haroutiounian
1849ddd48e
Docstring
8 gadus atpakaļ
Yann Weber
25a231702e
Changed confspec to include Auth specs + em_test modifications
8 gadus atpakaļ
Yann Weber
c0c1e628fd
Bugfixes on settings default value handling
8 gadus atpakaļ
Yann Weber
42fc14d7cc
Add a new settings validator named emfield
Check that an EmClass.EmField exsists in dyncode
8 gadus atpakaļ
Yann Weber
48f46d9a56
Fixing indent in validaotr.py
8 gadus atpakaļ
Roland Haroutiounian
42ddd6909b
Syntax errors fixed
8 gadus atpakaļ
Yann Weber
1ea9269742
Small bugfixes in leobject and validator
- Replaced a self. by cls. in leobject
- Changed default value for runtest option
8 gadus atpakaļ
Yann Weber
a3b3102604
New way to run test via loader & conf
8 gadus atpakaļ
Yann Weber
77e7c36de9
Not fully tested. Enables separated datasources for read only or read&write access to the DB
8 gadus atpakaļ
Yann Weber
83afc6b6dd
Deleted datasources plugins and add a settings for datasources declaration
- now datasources are declared with two conf keys : read_only and identifier
- the old datasources plugin hook is now declared in lodel/plugin/core_hooks.py. This file is imported after lodel/plugin/hooks.py in the loader.py
8 gadus atpakaļ
Yann Weber
49eb5bd67c
Adding a host validator for settings
8 gadus atpakaļ
Yann Weber
61f19772fb
New way to handles plugin
- renamed Plugins class to Plugin
- an instance represent a loaded plugin
- classmethod allows to preload & load plugins
8 gadus atpakaļ
Yann Weber
7e58988307
Changed broken conf in install/conf.d/datasources.ini + message enhancement for invalid configuration key
8 gadus atpakaļ
Yann Weber
67c53443b5
Activated raise on invalid settings + enhancement in Settings exceptions
8 gadus atpakaļ
Yann Weber
f8e8750eec
Progress in datasource as plugin implementation
8 gadus atpakaļ
Yann Weber
6fb04a69fb
Documentation on datasources plugins + confspec updates in validator.py
+ a new validator named 'string', it tries to cast the conf value using str()
8 gadus atpakaļ
Yann Weber
5c8f46c51e
Updated webui plugin to enable standalone mode
To start in standalone uwsgi set lodel2.webui.standalone=True in conf file and start loader.py
8 gadus atpakaļ
Yann Weber
85d11c0376
Nice exceptions for settings validation fails
8 gadus atpakaļ
Yann Weber
d7ae15e0bd
Validators update
- fixes exceptions output
- add "none" validator that validates only None
8 gadus atpakaļ
prieto
9497130e8b
Add Save of Settings, EM translator in xml
8 gadus atpakaļ
prieto
0c65414dda
22/04/2016
8 gadus atpakaļ
prieto
2dd2c3cc34
Set
8 gadus atpakaļ
prieto
25b5f32061
Sauvegarde de la configuration lors de modifications
8 gadus atpakaļ
prieto
48165e0fcb
Ajouts
8 gadus atpakaļ
prieto
ee795f539d
modifs
8 gadus atpakaļ
prieto
92921708ca
Settings loader en rw
8 gadus atpakaļ
Yann Weber
a312cbc4d9
First version of lodel2 instance creation script
8 gadus atpakaļ
Yann Weber
d30f3e189f
[1 test fail] Updated the settings to prepare them to be writable + more tests
8 gadus atpakaļ
Yann Weber
7897203830
Add SettingsLoader.getremains() test + code refactoring in SettingsLoader
8 gadus atpakaļ
Yann Weber
3ed55fdc29
Some modifications + tests update for settings loader
8 gadus atpakaļ
Yann Weber
8659e91f43
Fixing settings & logger
8 gadus atpakaļ