Yann Weber
cccabc7ce4
More forgotten files
пре 8 година
Yann Weber
976d0c90c8
First tests on LeObjects
пре 8 година
Yann Weber
ca3fa4cc27
Forgotten files
пре 8 година
Roland Haroutiounian
953e1447f4
deleted a useless import
пре 8 година
prieto
0d95a9e7ae
Merge branch 'newlodel' of git.labocleo.org:lodel2 into newlodel
пре 8 година
prieto
8bee875d27
Method load
пре 8 година
Yann Weber
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
пре 8 година
Yann Weber
785a208d07
LodelHook logging enhancement
пре 8 година
prieto
b39c279437
Merge branch 'newlodel' of git.labocleo.org:lodel2 into newlodel
пре 8 година
prieto
30b939f158
New load method
пре 8 година
Roland Haroutiounian
417ce0258a
Added a default connection check in the _activate function of the mongodb datasource, to see if the plugin can connect
пре 8 година
Yann Weber
59691165ae
Wrong method was called for preparing datas in LeUpdateQuery
пре 8 година
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 година
Roland Haroutiounian
5f9581679d
Deleted a useless import in the init of the mongodb datasource plugin
пре 8 година
Roland Haroutiounian
8ca2869bbd
PEP8 and deleted the import of the mongodbconnect function in the mongodb datasource
пре 8 година
Roland Haroutiounian
632381eabe
function name correction
пре 8 година
prieto
2c36c7d46e
Merge branch 'newlodel' of git.labocleo.org:lodel2 into newlodel
пре 8 година
prieto
021a99fd1f
A small correction
пре 8 година
Yann Weber
30bc9eec08
Fixing test and EmClass
- Now returning automatic common field classname in fields method
пре 8 година
prieto
1487356db8
Merge branch 'newlodel' of git.labocleo.org:lodel2 into newlodel
пре 8 година
prieto
7c3ca2acd8
Added links with LeQuery
пре 8 година
Roland Haroutiounian
c1627dd928
Commented temporarily the mongodbconnect function (replaced by the connect function in the same module
пре 8 година
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 година
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 година
Yann Weber
ba5fded049
Enable data check for LeInsertQuery
пре 8 година
Roland Haroutiounian
21d084e502
Fixed the username argument's name in the connection_string of the mongodb utils module
пре 8 година
Roland Haroutiounian
a9b475d912
Fixed a parameter name in the connect fonction in mongodb_datasource utils.py module
пре 8 година
Roland Haroutiounian
aee3db3095
added the import of the utils.connection_string function in the mongodb_datasource main.py module
пре 8 година
Yann Weber
77e7c36de9
Not fully tested. Enables separated datasources for read only or read&write access to the DB
пре 8 година
Yann Weber
86fd28e64a
Bugfix in instance default config
пре 8 година
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 година
Yann Weber
d9399bc64d
MongoDB datasource enhancement
- Enables connections saving & auto cleaning
- Preparing possibility to declare a datasource as read only
пре 8 година
Yann Weber
5708194875
Rewriting CRUD methods of datasources
- Now delete & update methods use filters & rel_filters
пре 8 година
Roland Haroutiounian
c595ee23a1
The mongodb migration handler uses now the mongo_filename function
пре 8 година
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 година
Yann Weber
be472a0d59
Modified LeDeleteQuery to act like a standart LeFilteredQuery
пре 8 година
Yann Weber
11027fd959
Starting implementation of relation in datasource
пре 8 година
Yann Weber
afadd92b3d
Fixing tests according to query new behaviour
пре 8 година
Yann Weber
49eb5bd67c
Adding a host validator for settings
пре 8 година
Roland Haroutiounian
fbf13e9da4
Deleted an old TODO
пре 8 година
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 година
Roland Haroutiounian
ffa911b22e
Added a condition on the field creation to consider only the documents of the class corresponding to the field
пре 8 година
Roland Haroutiounian
ad934a91cc
Revert (fixed)
пре 8 година
Roland Haroutiounian
c75a5f8094
Revert
пре 8 година
Roland Haroutiounian
ff2e59ced1
Fixed the "install" folder path building (extra "/" deleted)
пре 8 година
Roland Haroutiounian
f0c20aaac4
Added the test on the deletion of the collections (to not delete a basis collection)
пре 8 година
prieto
b963d34cf1
Added tests plugins
пре 8 година
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 година
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 година
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 година