1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-11-01 12:09:02 +01:00
Commit graph

1,601 commits

Author SHA1 Message Date
Yann
9cf1cc6884 Add a test on hooks priority 2016-08-29 15:07:51 +02:00
Yann
196d959188 Writing tests on hooks 2016-08-29 14:50:44 +02:00
Yann
9b27bd1911 Add a file to execute tests on plugins + rewrite the tests
- now runtest runs also make refresh_plugins in the test instance
2016-08-29 14:19:02 +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
Yann
80b8122dc4 fixes #133 : Documenting lodel_admin.py actions implementation
Commit refs #122 and fixes #133
2016-08-29 10:48:17 +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
20c1627bda Commenting & bufixing in datahandlers & queries 2016-08-26 11:35:13 +02:00
prieto
38fda3ce43 Some comments 2016-08-25 16:18:05 +02:00
prieto
a774b016c3 Merge branch 'newlodel' of git.labocleo.org:lodel2 into newlodel 2016-08-25 16:11:48 +02:00
prieto
57688e7afb Automatic update of Back-references 2016-08-25 16:11:41 +02:00
Yann
6e4fdde5f6 Doxygen documentation enhancement
Created groups (they can be found under the "Modules" menu -_- )
Created new pages : on LeAPI EditorialModel Plugins etc
2016-08-25 14:55:34 +02:00
Yann
59d95c3bb0 Commenting + deleted debug print() 2016-08-25 13:49:22 +02:00
prieto
61e0567abf Bugfixe in Datetime 2016-08-25 11:05:14 +02:00
Yann
611b01fd0e Bugfixes on ram_session on sessions and on cookies
- webui fix in cookies handling
- ram_session fix in token generation (return an str : hex representation of os.urandom(n))
- more fixes in Client session handling
2016-08-25 10:18:23 +02:00
prieto
f0f1ed9a83 Merge branch 'newlodel' of git.labocleo.org:lodel2 into newlodel 2016-08-25 08:51:29 +02:00
prieto
fee8dfdb68 Small corrections 2016-08-25 08:51:17 +02:00
Yann
eef54f2aad Begin session handling with cookies in webui 2016-08-24 17:35:18 +02:00
prieto
37f7d2a3dd Bugfixe for new_numeric_id 2016-08-24 16:44:26 +02:00
Yann
70ff2fcedc Solves #124 + discover-plugin argparse enhancement
No need of -d flag to specifiy directories
2016-08-24 16:02:01 +02:00
prieto
5f889169d3 Small bugfixes 2016-08-24 15:49:34 +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
eae2f83891 Connection between WebUi Client & Session started 2016-08-24 15:09:32 +02:00
Yann
60a1176728 Small RAM session handler implementation 2016-08-24 15:09:32 +02:00
Roland Haroutiounian
51feb0654c Added a test for a missing name in the from_name method's tests (for the DataHandler class) 2016-08-24 15:06:54 +02:00
Roland Haroutiounian
b7ae2c465d Added a from_name method's test for the DataHandler class 2016-08-24 14:49:49 +02:00
Roland Haroutiounian
909b9478e3 Added tests for the datahandler abstract class 2016-08-24 14:05:48 +02:00
Roland Haroutiounian
5f7b80682d Added a test module for the Datahandler base class 2016-08-24 11:58:18 +02:00
Yann
a82a75dfc6 Bugfixes in lodel_admin init_db action 2016-08-24 11:20:46 +02:00
Yann
180e41a657 Forgotten file 2016-08-24 11:00:28 +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
ba244bdd82 Modified filesystem_session plugin + start using sessions in client 2016-08-19 17:16:40 +02:00
Roland Haroutiounian
52564ee6db Added tests for datetime and file datahandlers, with corresponding checks in the corresponding classes 2016-08-19 16:57:31 +02:00
Roland Haroutiounian
3700b4cc83 Syntax fix on plugins.py module 2016-08-19 16:57:31 +02:00
Yann
ed4d2858b9 Starting again implementation of Auth/Client/Session global handling 2016-08-19 16:26:51 +02:00
Yann
a0335b668f Deleted debug message 2016-08-19 16:24:18 +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
prieto
8b00660dfd Merge branch 'newlodel' of git.labocleo.org:lodel2 into newlodel 2016-08-19 15:21:08 +02:00
prieto
a0d32cadb3 Some bugfixes in datahandlers 2016-08-19 15:20:03 +02:00
Yann
d115ebda1c Merge branch 'newlodel' of git.labocleo.org:lodel2 into newlodel 2016-08-19 14:20:06 +02:00
Yann
6a18cf7fa2 Begin implementation of new plugin list retrieval 2016-08-19 14:19:35 +02:00
m.orban
e4f0bd2358 Debug Metaclass to get child from Plugin Class 2016-08-19 14:01:35 +02:00
m.orban
22eae9d5ec Added metaclass to get a list of child Class from Plugin Base class 2016-08-19 12:57:05 +02:00
Roland Haroutiounian
f5208caf44 Added construct data test case for the Concat Datahandler 2016-08-19 11:57:12 +02:00
Roland Haroutiounian
49e893aa37 Added two unit tests for the format string datahandler + fix on a slicing end value 2016-08-19 11:48:48 +02:00
Yann
e176693574 Add plugin's discover cache consistency check in Plugin class cache getter 2016-08-19 11:44:52 +02:00
Yann
34c1784907 Enable factory in Plugin
- now plugin is able to instanciate using the good child class
- the discover cache now contains plugin's type
2016-08-19 11:34:09 +02:00
Yann
4627ae17e5 DatasourcePlugin class implementation
- DatasourcePlugin implmentation as child class of lodel.plugin.plugins.Plugin
- moved methods about datasource initialisation from LeObject to DatasourcePlugin ( _init_datasource(), plugin_name(), _get_ds_connection_conf() ...)
2016-08-19 11:34:09 +02:00
Roland Haroutiounian
ccb643a4aa bug fix on validator (syntax) 2016-08-19 11:13:11 +02:00
m.orban
192c3e9027 Merge branches 'newlodel' and 'newlodel' of git.labocleo.org:lodel2 into newlodel 2016-08-19 11:02:28 +02:00