1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-11-13 01:19:16 +01:00
Commit graph

106 commits

Author SHA1 Message Date
Quentin Bonaventure
ec1e531aa2 Most of licence headers + LICENCE.md 2017-05-04 08:42:40 +02:00
prieto
2c7e0f6703 Mainpage for doxygen 2017-05-03 15:30:07 +02:00
prieto
318a8474cd First attempt to a new create form 2017-04-05 11:39:39 +02:00
Roland Haroutiounian
bf28d7d8d8 Documentation of the lodel.plugin package (doc cleaning) 2017-03-30 15:12:55 +02:00
Roland Haroutiounian
5f42e19292 Documentation for the lodel/plugin/scripts.py module 2017-03-29 14:26:51 +02:00
prieto
aa2db00ccf Adjustements for doxygen 2017-03-28 17:10:35 +02:00
Roland Haroutiounian
bdbb76e10e Documentation on the lodel.plugin.interface module 2017-03-24 17:15:18 +01:00
Roland Haroutiounian
bc68848600 Documentation of the lodel.plugin.extensions and lodel.plugin.hooks modules 2017-03-24 16:07:21 +01:00
Roland Haroutiounian
72316b0f0a Documentation on the lodel.plugin.datasource_plugin et lodel.plugin.exceptions modules 2017-03-24 15:40:28 +01:00
Roland Haroutiounian
0ad3cc59bf Documentation on the lodel.plugin.core_hooks module 2017-03-24 10:54:29 +01:00
Hicham Benjelloun
5a49878df4 Fix Plugin.module_name() 2017-03-16 18:08:37 +01:00
Hicham Benjelloun
844b4eafb9 Refactor Plugin.module_name() 2017-03-16 18:06:12 +01:00
Hicham Benjelloun
1eb20f794d Merge 2017-03-16 17:56:14 +01:00
Hicham Benjelloun
87567222ab Refactor module_name method in class Plugin 2017-03-16 17:54:01 +01:00
prieto
8df56868f2 With dirty workaround of ticket Bug #282 2017-03-16 10:09:35 +01:00
Yann
c363b4c588 Plugins loader message enhancement 2017-02-22 17:10:39 +01:00
prieto
08ad11624d Class Validator replaces SettingValidator 2017-02-17 09:27:42 +01:00
Roland Haroutiounian
adfe7b886a Fixed some methods' documentation 2017-01-12 17:06:31 +01:00
Yann
a0bf4c1176 Bugfixes in PluginVersion comparison functions 2017-01-11 14:44:05 +01:00
Yann
08bcdbe57b Starts implementation of uninstall plugins action
For the moment there is only uninstalling by name that works because #207
2017-01-05 17:18:34 +01:00
Yann
0a93191207 Syntax error bugfix 2017-01-05 17:18:15 +01:00
Yann
eac6df20fa Adding a -c --clean option to plugins action in lodel_admin
Clean take care of deleting plugins with same name and different versions
(the lower versions will be deleted)
2017-01-05 16:35:51 +01:00
Yann
5706810928 Enhancement in plugins-list lodel_admin action
Now in verbose mode we are printing all plugins, even those with duplicated
names and different versions
2017-01-05 16:33:53 +01:00
Yann
74893c76fb Bugfixes in PluginVersion 2017-01-05 16:32:57 +01:00
Yann
0fc2b6ad0f Add an action allowing to install plugins in lodel_admin
the action is named plugins
2017-01-05 15:09:04 +01:00
Yann
4277576b99 Begining to write plugins scripts
For the moment a new action for lodel_admin has been added : list-plugins
With two options : verbosity and output formatted in CSV
2017-01-05 14:00:12 +01:00
Yann
aa1c0fb40c Updated comments for lodel.plugin.plugins
fixes #205
2017-01-05 12:12:57 +01:00
Yann
31a18f37fe Updated plugins beahavior according to lodelContext
Now discover is run when we want to know the list of installed plugins.
+ bugfix in module name generation (only in the constructor) to take care
of possible subdirs
2017-01-05 12:07:28 +01:00
Quentin Bonaventure
daa16b93e1 Removed strange import
Removed the "from .datasource_plugin import DatasourcePlugin" in
Plugin.register
2017-01-02 11:30:34 +01:00
Quentin Bonaventure
dab816f228 Removed repeated conditionnal statements
The exact same conditionnal statement throwing error if ptype is unknown
in Plugin.register() is already executed by
MetaPlugType.type_from_name(), which is called right after it. Guessing
which class should be concerned by such a check, I ended up removing it
in Plugin.
2017-01-02 11:22:43 +01:00
Yann
e2ddb47777 Better loglevel for hooks calls 2016-12-08 10:34:10 +01:00
Yann
2be79e50f0 Changes & bugfix in lodel.plugin.plugins
There were manual import through importlib, we have to replace them with LodelContext calls.
Actually the plugins module is in a dirty state....
2016-11-18 08:52:47 +01:00
Yann
e31adfda8e Bugfixes in numerous import processes
Replace some old pure python import by LodelContext calls
Change the plugins imports methods to use LodelContext instead
Fixes dyncode exposure method
2016-11-18 08:52:47 +01:00
Yann
b44113b74a Fixing import in logger plugins & datasource_plugin 2016-11-10 16:28:46 +01:00
Yann
0406e91846 Moved plugins folder in lodel/
- updated scripts etc
- make tests pass
2016-11-03 17:02:46 +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
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
39a5ba77cc Small bugfix in plugins error message 2016-09-21 17:14:51 +02:00
Yann
e6e4a03a27 Enhancement in SLIM capabilities + bugfixes in install process
SLIM is now able to edit configuration from CLI, to start instances etc.
2016-09-14 16:01:57 +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
Roland Haroutiounian
bda7779166 Changed the filesystem_session handler and added new commands to the sessionhandler (to add, del and read values from the session) 2016-09-07 17:42:36 +02:00
Yann
c7553748f0 Moved both classes un lodel/plugin/datasource_plugin.py + check inheritance
Implements the check of the bases classes of a datasource class in a datasource plugin ( solves #144 )
2016-09-07 17:27:02 +02:00
Yann
3e4231e871 Add an abtract datasource to make Datasource classes of plugins inherit from it
refs #132
2016-09-07 16:55:02 +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
be01af2c3e Bugfixes in lodel/buildconf.py & mongodb plugin 2016-08-31 09:19:47 +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
fdc985c732 Plugin discover & clear bugfixes
- Child classes where not cleared when Plugin.clear() was called. Now child classes implements a clear_cls() method to clear a Plugin child class
- When discovering plugins if during a is_plugin_dir() check we import two times in the same virtual module name, all non existing attributes values are taken from prvious imported file (the bug was on plugin_type when webui was imported just before dummy, then dummy was an interface)
2016-08-29 14:16:48 +02:00