Quentin Bonaventure
ec1e531aa2
Most of licence headers + LICENCE.md
преди 7 години
Quentin Bonaventure
ab03bbf7c8
Validator documentation
преди 7 години
Hicham Benjelloun
3d51695ea6
Fix plugins Makefile.am, settings initialization and validator
преди 7 години
Yann Weber
bf1ed9ff1a
Bugfix on settings_loader default values solves #308
преди 7 години
prieto
3b4494cb7a
Only indentation and stuff like that
преди 7 години
prieto
a1afe3b48d
After pylint
преди 7 години
prieto
08ad11624d
Class Validator replaces SettingValidator
преди 7 години
prieto
5d2be8737a
Inheritance of MlNamedObject 3
преди 7 години
prieto
6d5da933e0
Inheritance of MlNamedObject 2
преди 7 години
prieto
ac2312dad0
Class validator
преди 7 години
Roland Haroutiounian
adfe7b886a
Fixed some methods' documentation
преди 7 години
Yann Weber
c1f627eb18
Add configurable stuff for the standalone server
Now listening address, listening port and max_children count can be configured using the Settings module
преди 7 години
Yann Weber
e79cc4a9de
Enhancement of logger default options
преди 7 години
Yann Weber
4b3ebcabe8
Various bugfixes
concerning unittest & field validators
преди 7 години
Yann Weber
5981bdc0e5
Various bugfix in LodelContext integration
- Replaced some "hidden" import with LodelContext.expose_modules calls
- in some functions of Setting, Plugin, validator
- in loader.py (temporary version)
In this state the tests runs (151 success), I'm able to run an instance (from debian package using slim) in MONOSITE mode and in MULTISITE mode by creating and loading a context in the loader.
преди 7 години
Yann Weber
8085efeb99
Replaced all lodel subthings import by LodelContext.expose_modules calls
Test passes
преди 7 години
prieto
2d8a9811e6
Some adjustments and corresions
преди 7 години
Yann Weber
58b88b0b97
[broken] Fixes validator issues + confspec call
broken nginx conf + absolute path in slim that is known only at build time
преди 7 години
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
преди 7 години
Yann Weber
4507b22fad
Bugfixes on SettingValidator class
преди 7 години
Yann Weber
4acd6f8fbe
Deleted debug messages
преди 7 години
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)
преди 7 години
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
преди 7 години
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.
преди 7 години
Yann Weber
6a18cf7fa2
Begin implementation of new plugin list retrieval
преди 7 години
Roland Haroutiounian
ccb643a4aa
bug fix on validator (syntax)
преди 7 години
m.orban
9ae7855c50
Modified singleton sessionHandler: from __new__ to __init__ checked
преди 7 години
m.orban
0e7b5828fa
Added a settings validator for plugin
преди 7 години
Roland Haroutiounian
441be193a9
Bug fix on the settings validator module
преди 7 години
m.orban
81e732a6af
Added inheritance class SessionHandler (Plugin is the base-class
преди 7 години
Roland Haroutiounian
1849ddd48e
Docstring
преди 8 години
Yann Weber
25a231702e
Changed confspec to include Auth specs + em_test modifications
преди 8 години
Yann Weber
42fc14d7cc
Add a new settings validator named emfield
Check that an EmClass.EmField exsists in dyncode
преди 8 години
Yann Weber
48f46d9a56
Fixing indent in validaotr.py
преди 8 години
Yann Weber
1ea9269742
Small bugfixes in leobject and validator
- Replaced a self. by cls. in leobject
- Changed default value for runtest option
преди 8 години
Yann Weber
a3b3102604
New way to run test via loader & conf
преди 8 години
Yann Weber
77e7c36de9
Not fully tested. Enables separated datasources for read only or read&write access to the DB
преди 8 години
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 години
Yann Weber
49eb5bd67c
Adding a host validator for settings
преди 8 години
Yann Weber
f8e8750eec
Progress in datasource as plugin implementation
преди 8 години
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 години
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 години
Yann Weber
d7ae15e0bd
Validators update
- fixes exceptions output
- add "none" validator that validates only None
преди 8 години
prieto
92921708ca
Settings loader en rw
преди 8 години
Yann Weber
a312cbc4d9
First version of lodel2 instance creation script
преди 8 години
Yann Weber
d30f3e189f
[1 test fail] Updated the settings to prepare them to be writable + more tests
преди 8 години
Yann Weber
3ed55fdc29
Some modifications + tests update for settings loader
преди 8 години
Yann Weber
8659e91f43
Fixing settings & logger
преди 8 години
Yann Weber
e0717c9317
More comments + a script to list default settings validators
преди 8 години
Yann Weber
c5971d9590
Updated comments (and deleting space between ## and @brief )
преди 8 години