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
prieto
413d8e7570
Remove useless changes in PluginErro
8 years ago
Yann Weber
11c6b2b53e
Commenting a duplicated method + adapting LeQuery __query method to the new datasource system
8 years ago
prieto
e01c444436
Remove print(...)
8 years ago
Yann Weber
eba5d7d616
LeFilteredQuery.execute() method is written
8 years ago
Yann Weber
a91d25e392
Begin implementation of cross datasource reference query
- The set_query_filter() method handles subquery creation
- The run isn't written yet...
8 years ago
Yann Weber
616acd387d
Modified LeObject adding a _datasource_name attribute
The _datasource_name attribute replace the old _datasource attribute. The goal of the modification is to maintain easyly accessible datasource UID
8 years ago
prieto
73d911f091
Adding a new class methos in plugins.pyto clear the class variables
Adding tests for the Plugin class
8 years ago
Yann Weber
5d624bfda2
Make query.py lines fit in 78chars
8 years ago
Yann Weber
75c2a81225
Now plugins can define dependencies.
8 years ago
Roland Haroutiounian
bf2940a3e3
Move of the MongoDb Datasource in a plugin
8 years ago
Yann Weber
3adad7bb02
Now plugins can check EM and invalidate activation
They have to implement a _activate() method in their __init__.py file
8 years ago
Yann Weber
23e29b4336
Add _activate check when plugins are loaded
8 years ago
Yann Weber
8204f97fc5
Documentin Plugin + update pickle file example
8 years ago
Yann Weber
61f19772fb
New way to handles plugin
- renamed Plugins class to Plugin
- an instance represent a loaded plugin
- classmethod allows to preload & load plugins
8 years ago
Roland Haroutiounian
3a87551f2e
Code cleaning
8 years ago
Roland Haroutiounian
888c671659
Rewrote some code from the migration handler
8 years ago
Yann Weber
468cf2a383
Change logger to display absolute source file path instead of relative path
8 years ago
Yann Weber
7e58988307
Changed broken conf in install/conf.d/datasources.ini + message enhancement for invalid configuration key
8 years ago
prieto
664a591a87
Correction functions set_datas and data
8 years ago
prieto
9080d53f2f
Correction : self.__datas[fieldame] en sel.__datas[fieldname] line 116
8 years ago
prieto
0dddf1146f
Working for all tests
8 years ago
prieto
8264423011
Corrections
8 years ago
Yann Weber
065912cc66
Bugfix in LeObject._datasource bootstraping
- now _datasource attr contains an instance of the datasource, instanciated with options given in conf file
8 years ago
Yann Weber
cc337ccb73
Fixing tests and skipping the Settings set test
- I do not understand wy the set test for Settings was OK before...
8 years ago
Yann Weber
b683d68d83
Adding datasourc boostrapîng instructions in leaftory generated dyncode
+ better log message for datasource bootstrap
8 years ago
Yann Weber
84717328e3
Enhancement in datasources plugins handling
- now datasources are handled in LeObject child classes
- plugins module now have a method to retrieve a plugin module
8 years ago
Roland Haroutiounian
77f1db337b
Changed the emfield_new method
8 years ago
Roland Haroutiounian
1739a009bb
Implemented the emfield_del method in the migration handler
8 years ago
Yann Weber
3fe63787fb
Updated lequery.py to use targe_class datasource and not taking it as arguement of execute methods
8 years ago
Yann Weber
a7c69629e7
Introducing a datasource attribute by em_class
8 years ago
Roland Haroutiounian
84003e95f6
TODO added in the migration handler
8 years ago
Roland Haroutiounian
97de4a91b6
Reference fix on the call of a class property in the migration handler
8 years ago
Roland Haroutiounian
c3072a1bea
Deleted a useless comment
8 years ago
Roland Haroutiounian
a05d4cfbec
Added more methods to the mongodb migration handler
8 years ago
Yann Weber
67c53443b5
Activated raise on invalid settings + enhancement in Settings exceptions
8 years ago
Yann Weber
f8e8750eec
Progress in datasource as plugin implementation
8 years ago
Yann Weber
6fb04a69fb
Documentation on datasources plugins + confspec updates in validator.py
+ a new validator named 'string', it tries to cast the conf value using str()
8 years ago
Yann Weber
bf879a833c
Adds tests for LeGetQuery + bugfixes
- separates LeGetQuery tests and LeFilteredQuery tests
- small bugfixes associated to tests
8 years ago
Yann Weber
9781577cb6
Add tests for filtered queries + bugfixes
- adds tests on filter parse & check
- standart filters parse & check
- relational filters parse & check
- bugfixes related to tests in query.py
- update the example and the test EM
- bugfixes in admin script
8 years ago
Yann Weber
373987ab9f
[Broken tests] Add some tests for xmlfile EM translator
8 years ago
Roland Haroutiounian
4c0d447df3
added an identifier escaping method to the utils module
8 years ago
Roland Haroutiounian
7ea8470089
Moved the MongoDb database connection method to the utils module
8 years ago
Yann Weber
be8084b4fb
Small bugfix in LeObject
8 years ago
Yann Weber
6b5f377dc2
Regroup all code concerning webui in plugins/webui
8 years ago
Yann Weber
5991bc8e6f
Add leading & trailing spaces to all operators in LefilteredQuery
Doing so forbids operators like << == =! in* etc..
The tests were updated
8 years ago
Yann Weber
f402902b5b
Written some tests for filtered queries + query re modifications
- the re for filter spliting is modified to better handle operators
- added leading & trailing space to some operators
8 years ago
Yann Weber
76f002d06c
Bugfixes in leobject and queries classes
8 years ago