Roland Haroutiounian
a37fc6da2d
Added connection arguments check
8 years ago
Roland Haroutiounian
6fa7f8848f
Added an empty connection args check to the migration handler
8 years ago
Yann Weber
ca3fa4cc27
Forgotten files
8 years ago
Roland Haroutiounian
953e1447f4
deleted a useless import
8 years ago
Yann Weber
9a82936fbf
Datasources plugins enhancement and loading bugfixes
- now we have a LodelHook to trigger migration handlers loading
- datasources initialization in dyncode is now trigger by a hook (lodel2_plugin_loaded)
- datasources loading by dyncode is better
8 years ago
Roland Haroutiounian
417ce0258a
Added a default connection check in the _activate function of the mongodb datasource, to see if the plugin can connect
8 years ago
Yann Weber
9da19f3665
Moved exceptions + LeUpdateQuery.__query implementation
- The LeUpdateQuery implementation is broken or at least have huge performance issue
- Moved LeObject exceptions and LeQuery exceptions in lodel.leapi.exceptions
8 years ago
Roland Haroutiounian
5f9581679d
Deleted a useless import in the init of the mongodb datasource plugin
8 years ago
Roland Haroutiounian
8ca2869bbd
PEP8 and deleted the import of the mongodbconnect function in the mongodb datasource
8 years ago
Roland Haroutiounian
632381eabe
function name correction
8 years ago
Roland Haroutiounian
c1627dd928
Commented temporarily the mongodbconnect function (replaced by the connect function in the same module
8 years ago
Roland Haroutiounian
e5ad4d1ff7
created a datasource module in mongodb_datasource plugin and changed the main to add two hooks importing the migration handler and the datasource
8 years ago
Roland Haroutiounian
21d084e502
Fixed the username argument's name in the connection_string of the mongodb utils module
8 years ago
Roland Haroutiounian
a9b475d912
Fixed a parameter name in the connect fonction in mongodb_datasource utils.py module
8 years ago
Roland Haroutiounian
aee3db3095
added the import of the utils.connection_string function in the mongodb_datasource main.py module
8 years ago
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 years ago
Yann Weber
d9399bc64d
MongoDB datasource enhancement
- Enables connections saving & auto cleaning
- Preparing possibility to declare a datasource as read only
8 years ago
Yann Weber
5708194875
Rewriting CRUD methods of datasources
- Now delete & update methods use filters & rel_filters
8 years ago
Roland Haroutiounian
c595ee23a1
The mongodb migration handler uses now the mongo_filename function
8 years ago
Yann Weber
11027fd959
Starting implementation of relation in datasource
8 years ago
Roland Haroutiounian
fbf13e9da4
Deleted an old TODO
8 years ago
Roland Haroutiounian
0811de96cb
Fix on the arguments of the check_field_in_collection method of the migration handler (extra empty argument passed on a call)
8 years ago
Roland Haroutiounian
ffa911b22e
Added a condition on the field creation to consider only the documents of the class corresponding to the field
8 years ago
Roland Haroutiounian
f0c20aaac4
Added the test on the deletion of the collections (to not delete a basis collection)
8 years ago
Roland Haroutiounian
010decc4d3
Fix on the imports in the mongodb migration handler
8 years ago
Roland Haroutiounian
d309cea519
Added the emfield_upgrade method (for the update of an existing field)
8 years ago
Roland Haroutiounian
6dda142b14
First move of the migration_handler for MongoDb to the MongoDb Datasource plugin's package
8 years ago
Yann Weber
75c2a81225
Now plugins can define dependencies.
8 years ago
Roland Haroutiounian
bf2940a3e3
Move of the MongoDb Datasource in a plugin
8 years ago
Yann Weber
3adad7bb02
Now plugins can check EM and invalidate activation
They have to implement a _activate() method in their __init__.py file
8 years ago
Yann Weber
43911cdfe4
loader enhancement
8 years ago
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 years ago
Yann Weber
84717328e3
Enhancement in datasources plugins handling
- now datasources are handled in LeObject child classes
- plugins module now have a method to retrieve a plugin module
8 years ago
Yann Weber
f8e8750eec
Progress in datasource as plugin implementation
8 years ago
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 years ago
Yann Weber
6b5f377dc2
Regroup all code concerning webui in plugins/webui
8 years ago
Yann Weber
f2b33f4fe3
Bugfix in webui plugin
8 years ago
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 years ago
Yann Weber
c7b583d416
New webui plugin + create_instance.sh update
- create_instance.sh create some symbolic links
- webui plugin that add webui configuration variable
8 years ago
Yann Weber
a312cbc4d9
First version of lodel2 instance creation script
8 years ago
Yann Weber
c5971d9590
Updated comments (and deleting space between ## and @brief )
8 years ago
Yann Weber
c0c5d23adb
Commit with comments, code clean etc.
8 years ago
Yann Weber
68a27ff5dd
[Broken state] started settings implementation
8 years ago
Roland Haroutiounian
5cae70382a
Cleaning the folder hierarchy
8 years ago
Yann Weber
1ac0df3068
Renamed acl plugin into dummy_acl + documentation update
8 years ago
Yann Weber
dab52a3941
New plugins organisation + utility methods + manage_lodel.py script
8 years ago
Yann Weber
3948e5e543
Small bugfixes in Lodel/user.py & "acl" plugin
8 years ago
Yann Weber
1d6dc1ad89
Updated netipy client to disables console logging + add a security logging instruction to dummy_auth plugin
8 years ago
Yann Weber
97f1256615
Example plugins that uses UserContext
8 years ago
Yann Weber
cb9b53e7a2
Hooks & plugins first implementation
8 years ago