1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-06-09 12:30:48 +02:00
Commit graph

79 commits

Author SHA1 Message Date
Roland Haroutiounian
98ffe11d5f Changed the object_collection_name method in the utils of mongodb datasource plugin 2016-06-22 16:30:03 +02:00
Yann
996bc334a1 Bugfixes + code clean 2016-06-22 16:28:39 +02:00
Yann
61b80b8262 Lgger enhancement on MH 2016-06-22 16:17:50 +02:00
Yann
ba3f660451 Bugfix in init_db method of MongoDB migration handler 2016-06-22 16:14:10 +02:00
Yann
6e89fca151 The automatic UID creation by datasource implementation implies somes changes :
The UniqID datahandler has to call the datasource
	LeObject has to be able to determine wich parent class define its UID datahandler
	[NOT IMPLEMENTED] the datasource should be able to select with an abstract LeObject as target ( see #92 )
2016-06-22 14:20:46 +02:00
Roland Haroutiounian
965aad1cbd Method and variable calls fix in mongodb datasource 2016-06-22 12:22:04 +02:00
Yann
0acd3d6612 Bugfixes in query and datasources. 2016-06-22 11:12:27 +02:00
Yann
bbaf954d1c MH constructor simplification 2016-06-17 17:30:11 +02:00
Yann
13a2d157e3 Database initialization function written 2016-06-17 16:47:09 +02:00
prieto
f5dbb136fa Connections arguments passed in class init 2016-06-17 16:14:59 +02:00
Yann
e3dbdc8e49 Untested but written db initialisation function in install/lodel_admin.py 2016-06-17 14:57:54 +02:00
Yann
f386701392 New headers for dummy MH 2016-06-17 14:56:49 +02:00
prieto
214c29d545 Minor change 2016-06-17 14:37:03 +02:00
prieto
491bdb4849 MongoDB MigrationHandler takes a list of classes instead of an editorial model 2016-06-17 14:30:07 +02:00
Roland Haroutiounian
56e2dc1d5f Code cleaning in the migration handler 2016-06-16 14:48:18 +02:00
Roland Haroutiounian
2e13ab78bc Changed the mongodb migration handler name to a more generic one 2016-06-16 14:22:19 +02:00
Roland Haroutiounian
12006b11ab Added a condition on the class of the datasource for the classes used in the init_collection_names 2016-06-16 12:01:59 +02:00
Yann
df8e38d9a9 Bugfix in leapi_dyncode import for migration handler 2016-06-16 10:42:56 +02:00
Roland Haroutiounian
67ce738578 Gets the initial collection names from the dynamic code 2016-06-16 10:06:23 +02:00
Roland Haroutiounian
46732d6ce0 fixed a method call in the migration handler 2016-06-15 18:37:43 +02:00
Roland Haroutiounian
9ee52042bd Init collection names are dynamically defined in the migration handler 2016-06-15 17:36:52 +02:00
Roland Haroutiounian
74463649da Added the editorial model in the init of the migration handler 2016-06-15 17:20:45 +02:00
Yann
ee06ccf1eb Bugfix in webui plugin
Avoid useless impossible import by putting confpsec in a dedicated file
2016-06-15 17:18:35 +02:00
Roland Haroutiounian
1b9cb1a72d Changed the routing rules naming system 2016-06-15 16:52:22 +02:00
Roland Haroutiounian
77a857be5e Bug fix on the migration_handler's register change method 2016-06-15 16:49:17 +02:00
Roland Haroutiounian
510c4f29de An unused import is deleted 2016-06-15 16:49:17 +02:00
Yann
79cd9b21b1 Bugfixes in MongoDb datasource
- bugfixes in connection string generator
- bugfixes in garbage collection of opened connections
2016-06-15 16:38:56 +02:00
Yann
96f736ae16 Bufixes making test pass 2016-06-15 12:19:06 +02:00
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
2016-06-10 17:20:30 +02:00
Roland Haroutiounian
a37fc6da2d Added connection arguments check 2016-06-10 15:13:54 +02:00
Roland Haroutiounian
6fa7f8848f Added an empty connection args check to the migration handler 2016-06-10 14:59:25 +02:00
Yann
ca3fa4cc27 Forgotten files 2016-06-10 14:39:16 +02:00
Roland Haroutiounian
953e1447f4 deleted a useless import 2016-06-10 14:32:14 +02:00
Yann
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
2016-06-10 14:10:52 +02:00
Roland Haroutiounian
417ce0258a Added a default connection check in the _activate function of the mongodb datasource, to see if the plugin can connect 2016-06-10 11:54:59 +02:00
Yann
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
2016-06-10 11:27:52 +02:00
Roland Haroutiounian
5f9581679d Deleted a useless import in the init of the mongodb datasource plugin 2016-06-10 11:24:51 +02:00
Roland Haroutiounian
8ca2869bbd PEP8 and deleted the import of the mongodbconnect function in the mongodb datasource 2016-06-10 10:57:52 +02:00
Roland Haroutiounian
632381eabe function name correction 2016-06-10 10:44:30 +02:00
Roland Haroutiounian
c1627dd928 Commented temporarily the mongodbconnect function (replaced by the connect function in the same module 2016-06-10 09:06:03 +02:00
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 2016-06-10 09:06:03 +02:00
Roland Haroutiounian
21d084e502 Fixed the username argument's name in the connection_string of the mongodb utils module 2016-06-09 16:37:28 +02:00
Roland Haroutiounian
a9b475d912 Fixed a parameter name in the connect fonction in mongodb_datasource utils.py module 2016-06-09 16:34:23 +02:00
Roland Haroutiounian
aee3db3095 added the import of the utils.connection_string function in the mongodb_datasource main.py module 2016-06-09 15:56:14 +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
d9399bc64d MongoDB datasource enhancement
- Enables connections saving & auto cleaning
- Preparing possibility to declare a datasource as read only
2016-06-09 14:11:34 +02:00
Yann
5708194875 Rewriting CRUD methods of datasources
- Now delete & update methods use filters & rel_filters
2016-06-09 11:33:39 +02:00
Roland Haroutiounian
c595ee23a1 The mongodb migration handler uses now the mongo_filename function 2016-06-09 10:57:56 +02:00
Yann
11027fd959 Starting implementation of relation in datasource 2016-06-09 10:00:43 +02:00
Roland Haroutiounian
fbf13e9da4 Deleted an old TODO 2016-06-08 17:19:08 +02:00