Yann Weber
3e4231e871
Add an abtract datasource to make Datasource classes of plugins inherit from it
refs #132
vor 8 Jahren
Yann Weber
aa8c5ee56c
Bugfixes on backref updates on deletion refs #131
vor 8 Jahren
Yann Weber
e602e009ad
Bugfixes in backref handling in mongodb datasrouce refs #131
Now backref seems to work at creation of a Person linked with a text the Person UID is appended to Text.linked_persons
vor 8 Jahren
Yann Weber
66d08738dc
Bugfixes in Backref process refs #131 and in Integer dh
Triggered a bug in wrong Integer DH tests
vor 8 Jahren
Yann Weber
4e90475dbf
Continuing mongodb backreference implementation
vor 8 Jahren
Yann Weber
24a64eea59
Starts backref handling for mongodb datasource plugin
Methods are written.
They are not called by anyone and the only tests that were done is that no syntax error is raised.
( refs #131 )
vor 8 Jahren
prieto
37f7d2a3dd
Bugfixe for new_numeric_id
vor 8 Jahren
Roland Haroutiounian
9754c9a0d4
Consolidated methods documentation in mongodb and dummy datasource
vor 8 Jahren
Roland Haroutiounian
53bf344d40
Bug Fix wrong variable name in __process_filters method in the mongodb datasource
vor 8 Jahren
Roland Haroutiounian
e7f137d46e
Fixed a dict name in mongodb datasource (prepare_relational_filters method)
vor 8 Jahren
Roland Haroutiounian
6d05616ba1
Bug fixes in mongodb datasource (missing import, variable names ...)
vor 8 Jahren
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
vor 8 Jahren
prieto
e7163894a6
Replaced update_many by update and return res['n']
vor 8 Jahren
prieto
cbe8f7da13
_id is not returned by mongo insert
vor 8 Jahren
Roland Haroutiounian
c4df855e2f
Bug fix on an unexisting variable name
vor 8 Jahren
prieto
c41a22c807
Update aned Create from interface
vor 8 Jahren
Yann Weber
9c3a770610
Bugfixes on filters handling
- calling check_data_value on filters value to ensure value casting
vor 8 Jahren
Yann Weber
703b4adf7e
MongoDB datasource debugging + field_list handling changes in leobject -> query -> datasource chain
vor 8 Jahren
Yann Weber
5b987857bf
Small bugfix in mongDB datasource in multi direction order param
vor 8 Jahren
Yann Weber
0336355628
Bugfix in __generate_lambda_cmp_order in mongoDB datasource
vor 8 Jahren
Yann Weber
89beb80eca
Solves #96 order with different direction on different fields in MongoDB Datasource
vor 8 Jahren
Yann Weber
229293b734
Possible overflow bug fix in mongodb datasource
In post reccursion processing on select
vor 8 Jahren
Yann Weber
29d6c0fcf2
[Untested] Apply abtract LeObject child class generalisation for delete & update methods of mongoDB datasource
vor 8 Jahren
Yann Weber
8a32f1973a
Better comments + 79char limit on mongodb datasource
vor 8 Jahren
Yann Weber
2668770369
Begin abstract LeObject child query factorisation in mongodb Datasource
vor 8 Jahren
Yann Weber
8e6e60f0f4
Bugfixes concerning UniqID and select on abtract LeObject child
vor 8 Jahren
Roland Haroutiounian
9d7c0f1be7
bug fix
vor 8 Jahren
Roland Haroutiounian
6a6396f0d2
Bug fix
vor 8 Jahren
Roland Haroutiounian
8e4815c34f
Bugfix on the recursive select
vor 8 Jahren
Roland Haroutiounian
d32756695a
First implementation of the abstract class select queries
vor 8 Jahren
Roland Haroutiounian
ffad9fc01c
Revert
vor 8 Jahren
Roland Haroutiounian
98ffe11d5f
Changed the object_collection_name method in the utils of mongodb datasource plugin
vor 8 Jahren
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 )
vor 8 Jahren
Roland Haroutiounian
965aad1cbd
Method and variable calls fix in mongodb datasource
vor 8 Jahren
Yann Weber
0acd3d6612
Bugfixes in query and datasources.
vor 8 Jahren
Yann Weber
79cd9b21b1
Bugfixes in MongoDb datasource
- bugfixes in connection string generator
- bugfixes in garbage collection of opened connections
vor 8 Jahren
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
vor 8 Jahren
Roland Haroutiounian
8ca2869bbd
PEP8 and deleted the import of the mongodbconnect function in the mongodb datasource
vor 8 Jahren
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
vor 8 Jahren
Roland Haroutiounian
aee3db3095
added the import of the utils.connection_string function in the mongodb_datasource main.py module
vor 8 Jahren
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
vor 8 Jahren
Yann Weber
d9399bc64d
MongoDB datasource enhancement
- Enables connections saving & auto cleaning
- Preparing possibility to declare a datasource as read only
vor 8 Jahren
Yann Weber
5708194875
Rewriting CRUD methods of datasources
- Now delete & update methods use filters & rel_filters
vor 8 Jahren
Yann Weber
11027fd959
Starting implementation of relation in datasource
vor 8 Jahren
Roland Haroutiounian
d309cea519
Added the emfield_upgrade method (for the update of an existing field)
vor 8 Jahren
Roland Haroutiounian
bf2940a3e3
Move of the MongoDb Datasource in a plugin
vor 8 Jahren
Roland Haroutiounian
3a87551f2e
Code cleaning
vor 8 Jahren
Roland Haroutiounian
7ea8470089
Moved the MongoDb database connection method to the utils module
vor 8 Jahren
Roland Haroutiounian
d58168a69f
Mongodb datasource : added new methods
vor 8 Jahren
Roland Haroutiounian
825dea770b
Added the "group by" option in the select method of the mongodb datasource and started the implementation of the migration handler
vor 8 Jahren