Yann Weber
0406e91846
Moved plugins folder in lodel/
- updated scripts etc
- make tests pass
8 years ago
Yann Weber
c3137b658f
Replaced imports by LodelContext.expose_modules() calls
Theorically all of those imports were tested by unit testing, but we've got no inssurance about that.
And even if unit tests had check for syntax errors, all pieces of code were not tested. We cannot
be sure that an import was missed or forgotten...
8 years ago
prieto
d0f52641b3
In operator with cast of right type
8 years ago
prieto
b79a82e9f0
detailed object listing
8 years ago
Roland Haroutiounian
bb60b09d66
Added the conversion between a string and a list for the "in"/"not in" operators
8 years ago
Yann Weber
0b60a24582
Bugfixes on back reference handling for singleRef solves #154
8 years ago
Yann Weber
740d0c1167
Bugfixes on backreference handling
8 years ago
Yann Weber
df45f318d4
Bugfixe in MongoDb datasource
Pymongo do not handles sets as value. We have to cast them into lists
done only in update for the moment...
8 years ago
Yann Weber
2b30b2f346
Making datasource and mass_deploy working with mongodb user management
https://docs.mongodb.com/v2.4/reference/user-privileges/
https://docs.mongodb.com/v2.4/reference/privilege-documents/
8 years ago
Yann Weber
3e4231e871
Add an abtract datasource to make Datasource classes of plugins inherit from it
refs #132
8 years ago
Yann Weber
aa8c5ee56c
Bugfixes on backref updates on deletion refs #131
8 years ago
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
8 years ago
Yann Weber
66d08738dc
Bugfixes in Backref process refs #131 and in Integer dh
Triggered a bug in wrong Integer DH tests
8 years ago
Yann Weber
4e90475dbf
Continuing mongodb backreference implementation
8 years ago
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 )
8 years ago
prieto
37f7d2a3dd
Bugfixe for new_numeric_id
8 years ago
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