Roland Haroutiounian
56e2dc1d5f
Code cleaning in the migration handler
8 years ago
Roland Haroutiounian
2e13ab78bc
Changed the mongodb migration handler name to a more generic one
8 years ago
Roland Haroutiounian
12006b11ab
Added a condition on the class of the datasource for the classes used in the init_collection_names
8 years ago
Yann Weber
df8e38d9a9
Bugfix in leapi_dyncode import for migration handler
8 years ago
Roland Haroutiounian
67ce738578
Gets the initial collection names from the dynamic code
8 years ago
Roland Haroutiounian
46732d6ce0
fixed a method call in the migration handler
8 years ago
Roland Haroutiounian
9ee52042bd
Init collection names are dynamically defined in the migration handler
8 years ago
Roland Haroutiounian
74463649da
Added the editorial model in the init of the migration handler
8 years ago
Roland Haroutiounian
77a857be5e
Bug fix on the migration_handler's register change method
8 years ago
Yann Weber
79cd9b21b1
Bugfixes in MongoDb datasource
- bugfixes in connection string generator
- bugfixes in garbage collection of opened connections
8 years ago
Roland Haroutiounian
ca6af9432b
Split of the connect function to create a connection function that return a MongoClient object
This is used for the tests that needs to have access to a connection to be able to drop the test databases
8 years ago
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
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
Roland Haroutiounian
bf2940a3e3
Move of the MongoDb Datasource in a plugin
8 years ago