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
afadd92b3d
Fixing tests according to query new behaviour
9 years ago
prieto
b963d34cf1
Added tests plugins
9 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
9 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
9 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
9 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"
9 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...
9 years ago
prieto
73d911f091
Adding a new class methos in plugins.pyto clear the class variables
Adding tests for the Plugin class
9 years ago
Yann Weber
63a85eb85c
Bugfix in xmfile translator tests (path problem)
Using the conf to load emtests.pickle
9 years ago
prieto
ce9684e330
Path correction
9 years ago
prieto
3dc064f98b
Correction
9 years ago
prieto
0a870e55f6
Tests checked
9 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...
9 years ago
Yann Weber
3fe63787fb
Updated lequery.py to use targe_class datasource and not taking it as arguement of execute methods
9 years ago
Yann Weber
a7c69629e7
Introducing a datasource attribute by em_class
9 years ago
Yann Weber
67c53443b5
Activated raise on invalid settings + enhancement in Settings exceptions
9 years ago
Yann Weber
f8e8750eec
Progress in datasource as plugin implementation
9 years ago
Yann Weber
bf879a833c
Adds tests for LeGetQuery + bugfixes
- separates LeGetQuery tests and LeFilteredQuery tests
- small bugfixes associated to tests
9 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
9 years ago
Yann Weber
38a2448934
Skiping tests waiting for bugfixes
9 years ago
Yann Weber
373987ab9f
[Broken tests] Add some tests for xmlfile EM translator
9 years ago
Yann Weber
2628e67982
Bugfix in utility script
9 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
9 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
9 years ago
prieto
1a7c3e683a
Delete the useless tests
9 years ago
prieto
aa67601c81
Bugs correction
9 years ago
prieto
9497130e8b
Add Save of Settings, EM translator in xml
9 years ago
prieto
c439b6d929
test settings
9 years ago
prieto
48165e0fcb
Ajouts
9 years ago
prieto
92921708ca
Settings loader en rw
9 years ago
Yann Weber
d30f3e189f
[1 test fail] Updated the settings to prepare them to be writable + more tests
9 years ago
Yann Weber
7897203830
Add SettingsLoader.getremains() test + code refactoring in SettingsLoader
9 years ago
Yann Weber
3ed55fdc29
Some modifications + tests update for settings loader
9 years ago
Yann Weber
46fe058e5a
Deleted a print in tests + updates pickled em
9 years ago
Yann Weber
8659e91f43
Fixing settings & logger
9 years ago
prieto
0eb06b3a4f
rm dir
9 years ago
prieto
59342cd315
13042016
9 years ago
prieto
b4da6c14c9
test
9 years ago
prieto
3b37eb6337
correction erreur nom de section
9 years ago
prieto
b0bff45d94
corrections
9 years ago
Yann Weber
8dbe6b6234
More tests on SettingsLoader
9 years ago
Yann Weber
640f665326
More tests for SettingsLoader class
9 years ago
prieto
40e30935f2
Ajout d'exemples de conf
9 years ago
Yann Weber
d7a6e22db3
Changes the loader in order to load settings_local.ini instead of versionned settings.ini
9 years ago
Yann Weber
2404c53fef
Add a loader for tests in order to bootstrap settings
9 years ago
Yann Weber
c0c5d23adb
Commit with comments, code clean etc.
9 years ago
prieto
7a4faaf5eb
test settingloader
9 years ago
prieto
20b148f0d0
Ajout getter
9 years ago
Yann Weber
01df586379
Bugfix in lefactory method that allow to sort EmClass by dependencies + test update
9 years ago