prieto
b39c279437
Merge branch 'newlodel' of git.labocleo.org:lodel2 into newlodel
8 years ago
prieto
30b939f158
New load method
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
59691165ae
Wrong method was called for preparing datas in LeUpdateQuery
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
prieto
2c36c7d46e
Merge branch 'newlodel' of git.labocleo.org:lodel2 into newlodel
8 years ago
prieto
021a99fd1f
A small correction
8 years ago
Yann Weber
30bc9eec08
Fixing test and EmClass
- Now returning automatic common field classname in fields method
8 years ago
prieto
1487356db8
Merge branch 'newlodel' of git.labocleo.org:lodel2 into newlodel
8 years ago
prieto
7c3ca2acd8
Added links with LeQuery
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
Yann Weber
e9f17eab6e
Fixes #79 (and brokes tests of xml translator)
Adding a field to all non abstract classes to store in DB the name of corresponding LeObject subclass
8 years ago
Yann Weber
ba5fded049
Enable data check for LeInsertQuery
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
77e7c36de9
Not fully tested. Enables separated datasources for read only or read&write access to the DB
8 years ago
Yann Weber
86fd28e64a
Bugfix in instance default config
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
7e2a60e73e
Fixing lequery execute -> __query process
- deleting most of **datas to replace it with a standart dict argument
- using filters in childs of LeFilteredQuery
8 years ago
Yann Weber
be472a0d59
Modified LeDeleteQuery to act like a standart LeFilteredQuery
8 years ago
Yann Weber
11027fd959
Starting implementation of relation in datasource
8 years ago
Yann Weber
afadd92b3d
Fixing tests according to query new behaviour
8 years ago
Yann Weber
49eb5bd67c
Adding a host validator for settings
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
ad934a91cc
Revert (fixed)
8 years ago
Roland Haroutiounian
c75a5f8094
Revert
8 years ago
Roland Haroutiounian
ff2e59ced1
Fixed the "install" folder path building (extra "/" deleted)
8 years ago
Roland Haroutiounian
f0c20aaac4
Added the test on the deletion of the collections (to not delete a basis collection)
8 years ago
prieto
b963d34cf1
Added tests plugins
8 years ago
Yann Weber
0f9b07f08a
More tests & debug on multi datasource queries + em_test update
- Added missing allowed_classes options to some references in em_test
8 years ago
Yann Weber
e55954d947
First test on multi datasource queries + em_test update + query.py debug
- Modified again the em_test to fit with testing purpose
- First test on multi datasource query written
- debugging of query.py
8 years ago
Yann Weber
b8d5b5bba2
Completing em_test modifications + completing the dump_infos method of LeFilteredQuery
- adding an EmClass to make a double link between indexes and texts
- adding subqueries infos to dump_infos method of LeFilteredQuery
8 years ago
Yann Weber
d6fbc5cfd1
Test editorial model updated to use two different datasources
- defining a new datasource named dummy2 in both tests conf and install/conf.d
- adding two class using the new datasource in em_test.py
- index : abtract class representing indexes (two fields, name & content)
- indextheme : thematic index, inheriting from index but with one more field "theme"
8 years ago
Roland Haroutiounian
010decc4d3
Fix on the imports in the mongodb migration handler
8 years ago
prieto
05139b78b5
Merge branch 'newlodel' of git.labocleo.org:lodel2 into newlodel
8 years ago
prieto
413d8e7570
Remove useless changes in PluginErro
8 years ago
Roland Haroutiounian
d309cea519
Added the emfield_upgrade method (for the update of an existing field)
8 years ago
Yann Weber
11c6b2b53e
Commenting a duplicated method + adapting LeQuery __query method to the new datasource system
8 years ago
prieto
30ecf5e56f
Merge branch 'newlodel' of git.labocleo.org:lodel2 into newlodel
8 years ago
prieto
e01c444436
Remove print(...)
8 years ago