1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-11-01 20:10:55 +01:00
Commit graph

91 commits

Author SHA1 Message Date
Hicham Benjelloun
3d51695ea6 Fix plugins Makefile.am, settings initialization and validator 2017-03-15 13:35:06 +01:00
Yann
bf1ed9ff1a Bugfix on settings_loader default values solves #308 2017-02-22 17:09:16 +01:00
prieto
2174b23ec6 Autotools adaptation for new directories 2017-02-17 09:27:42 +01:00
prieto
3b4494cb7a Only indentation and stuff like that 2017-02-17 09:27:42 +01:00
prieto
a1afe3b48d After pylint 2017-02-17 09:27:42 +01:00
prieto
656932fe68 Removes settings/validator.py 2017-02-17 09:27:42 +01:00
prieto
08ad11624d Class Validator replaces SettingValidator 2017-02-17 09:27:42 +01:00
prieto
ac2312dad0 Class validator 2017-02-17 09:27:41 +01:00
Roland Haroutiounian
adfe7b886a Fixed some methods' documentation 2017-01-12 17:06:31 +01:00
Yann
c1f627eb18 Add configurable stuff for the standalone server
Now listening address, listening port and max_children count can be configured using the Settings module
2016-11-18 16:55:09 +01:00
Yann
e79cc4a9de Enhancement of logger default options 2016-11-18 10:24:28 +01:00
Yann
0ffe60ff2b Modifying settings class to allow usage of custom confspecs
a bit dirty & quick
2016-11-10 16:28:46 +01:00
Yann
4b3ebcabe8 Various bugfixes
concerning unittest & field validators
2016-11-04 15:03:32 +01:00
Yann
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.
2016-11-03 10:58:38 +01:00
Yann
8085efeb99 Replaced all lodel subthings import by LodelContext.expose_modules calls
Test passes
2016-11-02 16:24:22 +01:00
Yann
572c408a79 POC of context manager to handle virtual lodel packages 2016-11-02 14:34:27 +01:00
prieto
2d8a9811e6 Some adjustments and corresions 2016-10-06 09:03:07 +02:00
Yann
8f48612c82 Enables debian package creation
with make deb . Next commit will update the README
2016-09-23 14:34:57 +02:00
Yann
58b88b0b97 [broken] Fixes validator issues + confspec call
broken nginx conf + absolute path in slim that is known only at build time
2016-09-22 17:34:15 +02:00
Yann
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
2016-09-08 15:39:29 +02:00
Yann
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
2016-09-08 14:48:35 +02:00
Yann
4507b22fad Bugfixes on SettingValidator class 2016-09-07 16:36:59 +02:00
Yann
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...
2016-08-31 09:26:57 +02:00
Yann
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
2016-08-30 17:26:32 +02:00
Yann
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.
2016-08-30 14:01:25 +02:00
Yann
4acd6f8fbe Deleted debug messages 2016-08-29 09:14:41 +02:00
Yann
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)
2016-08-29 09:09:19 +02:00
Yann
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__
2016-08-24 15:09:32 +02:00
Yann
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
2016-08-24 10:13:36 +02:00
Yann
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.
2016-08-19 16:22:59 +02:00
Yann
6a18cf7fa2 Begin implementation of new plugin list retrieval 2016-08-19 14:19:35 +02:00
Roland Haroutiounian
ccb643a4aa bug fix on validator (syntax) 2016-08-19 11:13:11 +02:00
m.orban
9ae7855c50 Modified singleton sessionHandler: from __new__ to __init__ checked 2016-08-19 11:02:21 +02:00
m.orban
0e7b5828fa Added a settings validator for plugin 2016-08-19 09:58:15 +02:00
m.orban
81e732a6af Added inheritance class SessionHandler (Plugin is the base-class 2016-08-18 16:30:13 +02:00
Yann
16ef4d9d3f Settings started detection mechanism enhancement + early log message creation (for plugins & settings) 2016-08-17 16:34:07 +02:00
Yann
82e9d3c9aa Allow early utilisation of lodel.logger ( #121 )
http://redmine.labocleo.org/issues/121
2016-08-17 16:22:12 +02:00
Roland Haroutiounian
1849ddd48e Docstring 2016-07-08 16:37:07 +02:00
Yann
25a231702e Changed confspec to include Auth specs + em_test modifications 2016-07-07 16:35:28 +02:00
Yann
c0c1e628fd Bugfixes on settings default value handling 2016-07-06 17:33:43 +02:00
Yann
42fc14d7cc Add a new settings validator named emfield
Check that an EmClass.EmField exsists in dyncode
2016-07-06 17:33:43 +02:00
Yann
48f46d9a56 Fixing indent in validaotr.py 2016-07-06 17:33:42 +02:00
Roland Haroutiounian
42ddd6909b Syntax errors fixed 2016-06-24 09:57:40 +02:00
Yann
1ea9269742 Small bugfixes in leobject and validator
- Replaced a self. by cls. in leobject
- Changed default value for runtest option
2016-06-15 16:37:11 +02:00
Yann
a3b3102604 New way to run test via loader & conf 2016-06-15 12:01:11 +02:00
Yann
77e7c36de9 Not fully tested. Enables separated datasources for read only or read&write access to the DB 2016-06-09 15:11:25 +02:00
Yann
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
2016-06-09 14:35:31 +02:00
Yann
49eb5bd67c Adding a host validator for settings 2016-06-09 10:00:42 +02:00
Yann
61f19772fb New way to handles plugin
- renamed Plugins class to Plugin
- an instance represent a loaded plugin
- classmethod allows to preload & load plugins
2016-06-01 16:37:07 +02:00
Yann
7e58988307 Changed broken conf in install/conf.d/datasources.ini + message enhancement for invalid configuration key 2016-06-01 10:10:34 +02:00