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
Yann Weber
30bc9eec08
Fixing test and EmClass
- Now returning automatic common field classname in fields method
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
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
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
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
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
63a85eb85c
Bugfix in xmfile translator tests (path problem)
Using the conf to load emtests.pickle
8 years ago
prieto
ce9684e330
Path correction
8 years ago
prieto
3dc064f98b
Correction
8 years ago
prieto
0a870e55f6
Tests checked
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
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
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
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
38a2448934
Skiping tests waiting for bugfixes
8 years ago
Yann Weber
373987ab9f
[Broken tests] Add some tests for xmlfile EM translator
8 years ago
Yann Weber
2628e67982
Bugfix in utility script
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
prieto
1a7c3e683a
Delete the useless tests
8 years ago
prieto
aa67601c81
Bugs correction
8 years ago
prieto
9497130e8b
Add Save of Settings, EM translator in xml
8 years ago
prieto
c439b6d929
test settings
8 years ago
prieto
48165e0fcb
Ajouts
8 years ago
prieto
92921708ca
Settings loader en rw
8 years ago
Yann Weber
d30f3e189f
[1 test fail] Updated the settings to prepare them to be writable + more tests
8 years ago
Yann Weber
7897203830
Add SettingsLoader.getremains() test + code refactoring in SettingsLoader
8 years ago
Yann Weber
3ed55fdc29
Some modifications + tests update for settings loader
8 years ago
Yann Weber
46fe058e5a
Deleted a print in tests + updates pickled em
8 years ago
Yann Weber
8659e91f43
Fixing settings & logger
8 years ago
prieto
0eb06b3a4f
rm dir
8 years ago
prieto
59342cd315
13042016
8 years ago
prieto
b4da6c14c9
test
8 years ago
prieto
3b37eb6337
correction erreur nom de section
8 years ago
prieto
b0bff45d94
corrections
8 years ago
Yann Weber
8dbe6b6234
More tests on SettingsLoader
8 years ago
Yann Weber
640f665326
More tests for SettingsLoader class
8 years ago
prieto
40e30935f2
Ajout d'exemples de conf
8 years ago
Yann Weber
d7a6e22db3
Changes the loader in order to load settings_local.ini instead of versionned settings.ini
8 years ago
Yann Weber
2404c53fef
Add a loader for tests in order to bootstrap settings
8 years ago
Yann Weber
c0c5d23adb
Commit with comments, code clean etc.
8 years ago