Roland Haroutiounian
9754c9a0d4
Consolidated methods documentation in mongodb and dummy datasource
8 years ago
Roland Haroutiounian
53bf344d40
Bug Fix wrong variable name in __process_filters method in the mongodb datasource
8 years ago
Roland Haroutiounian
e7f137d46e
Fixed a dict name in mongodb datasource (prepare_relational_filters method)
8 years ago
Roland Haroutiounian
6d05616ba1
Bug fixes in mongodb datasource (missing import, variable names ...)
8 years ago
Yann Weber
904d14cae7
Small changes in webui plugin and loader.py
- webui now calls a hook to indicate a session end
- loader.py now set a lodel.dyncode module exposing dynmically generated code
8 years ago
prieto
e7163894a6
Replaced update_many by update and return res['n']
8 years ago
prieto
cbe8f7da13
_id is not returned by mongo insert
8 years ago
Roland Haroutiounian
c4df855e2f
Bug fix on an unexisting variable name
8 years ago
prieto
c41a22c807
Update aned Create from interface
8 years ago
Yann Weber
9c3a770610
Bugfixes on filters handling
- calling check_data_value on filters value to ensure value casting
8 years ago
Yann Weber
703b4adf7e
MongoDB datasource debugging + field_list handling changes in leobject -> query -> datasource chain
8 years ago
Yann Weber
5b987857bf
Small bugfix in mongDB datasource in multi direction order param
8 years ago
Yann Weber
0336355628
Bugfix in __generate_lambda_cmp_order in mongoDB datasource
8 years ago
Yann Weber
89beb80eca
Solves #96 order with different direction on different fields in MongoDB Datasource
8 years ago
Yann Weber
229293b734
Possible overflow bug fix in mongodb datasource
In post reccursion processing on select
8 years ago
Yann Weber
29d6c0fcf2
[Untested] Apply abtract LeObject child class generalisation for delete & update methods of mongoDB datasource
8 years ago
Yann Weber
8a32f1973a
Better comments + 79char limit on mongodb datasource
8 years ago
Yann Weber
2668770369
Begin abstract LeObject child query factorisation in mongodb Datasource
8 years ago
Yann Weber
8e6e60f0f4
Bugfixes concerning UniqID and select on abtract LeObject child
8 years ago
Roland Haroutiounian
9d7c0f1be7
bug fix
8 years ago
Roland Haroutiounian
6a6396f0d2
Bug fix
8 years ago
Roland Haroutiounian
8e4815c34f
Bugfix on the recursive select
8 years ago
Roland Haroutiounian
d32756695a
First implementation of the abstract class select queries
8 years ago
Roland Haroutiounian
ffad9fc01c
Revert
8 years ago
Roland Haroutiounian
98ffe11d5f
Changed the object_collection_name method in the utils of mongodb datasource plugin
8 years ago
Yann Weber
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 )
8 years ago
Roland Haroutiounian
965aad1cbd
Method and variable calls fix in mongodb datasource
8 years ago
Yann Weber
0acd3d6612
Bugfixes in query and datasources.
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
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
8ca2869bbd
PEP8 and deleted the import of the mongodbconnect function in the mongodb datasource
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
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
Yann Weber
11027fd959
Starting implementation of relation in datasource
8 years ago
Roland Haroutiounian
d309cea519
Added the emfield_upgrade method (for the update of an existing field)
8 years ago
Roland Haroutiounian
bf2940a3e3
Move of the MongoDb Datasource in a plugin
8 years ago
Roland Haroutiounian
3a87551f2e
Code cleaning
8 years ago
Roland Haroutiounian
7ea8470089
Moved the MongoDb database connection method to the utils module
8 years ago
Roland Haroutiounian
d58168a69f
Mongodb datasource : added new methods
8 years ago
Roland Haroutiounian
825dea770b
Added the "group by" option in the select method of the mongodb datasource and started the implementation of the migration handler
8 years ago
Roland Haroutiounian
60f88dcf0c
Ajout d'un GenericDataSource avec les signatures des méthodes de base
8 years ago
Roland Haroutiounian
b17259cf02
First implementation of the insert method in the mongodb datasource
8 years ago
Roland Haroutiounian
801f2f0679
Added the order options parsing function
8 years ago
Roland Haroutiounian
d28828c7c9
Datasource implementation
- Implementation of the delete, insert and insert_multi methods + first implementation of the select method in the MongoDB datasource
- Added parsing methods in the mongodb/utils module
8 years ago
Roland Haroutiounian
f4a70e25a5
Code cleaning
8 years ago
Roland Haroutiounian
688e15f8e0
[DataSource] added the utils.object_collection_name method to utils module. Added also the insert and insert_multi methods to the MongoDb datasource class
8 years ago
Roland Haroutiounian
542fdf1ca7
[MongoDbDataSource] Implementation of the connection creation and a first check on the given parameters
- The check method checks, for now, if all the needed parameters are passed to the connection string
- A test class has been written with some bad connection args examples
8 years ago