Yann Weber
43e8145dab
Implements get_max_rank() in LeApi. Add a fieldtype rank. + A lot of bugfix
The me.json was not up to date (Models don't forward classtypes modifications to loaded json file)
Some bugfix on fieldtypes that was not used (because of old me.json)
9 years ago
ArnAud
5164adffa3
sql datasource: delete unused methods
9 years ago
ArnAud
5be6c62189
sql datasource: relational filter for hierarchical relations
9 years ago
ArnAud
53663603fa
lecrud: get() flag instanciate to choose to get raw data or objects
9 years ago
Yann Weber
f2a54b72cd
Comments update for doxygen doc
Now we have a main page on doxygen
9 years ago
ArnAud
a084678831
sql datasource: update() for rel2type
9 years ago
Yann Weber
94b843e321
Add a new settings debug_sql
9 years ago
Yann Weber
8133e6c45b
Add settings.py with default value, add migration_handler options + modify migration_handler to handle settings
9 years ago
Yann Weber
c7756f5ea2
Update README and mh comments
9 years ago
ArnAud
97716da260
sql datasource: get() for a rel2type
9 years ago
ArnAud
642fec49e9
sql datasource tests: repair after changes of utils functions
9 years ago
ArnAud
98f02e1630
sql datasource: select/insert for relations
9 years ago
Yann Weber
be2fe9b7a5
PEP8 + lint on migrationhandler and MySQL/utils
9 years ago
Yann Weber
4b629fee81
More clean on migrationhandler
9 years ago
Yann Weber
6a55df202e
Changed the way to instanciate the MigrationHandler to fit with the DataSource
9 years ago
Yann Weber
89667ee1d1
Fixing tests and other classes to fit recent changes
9 years ago
Yann Weber
146c0fd69b
Finish the new version of migrationhandler + modifications in leFactory and LeRelation (to handle generic lesup & lesub in LeRelation)
9 years ago
ArnAud
c129ceaa49
sql datasource: refactoring
9 years ago
Yann Weber
54af3da85a
Modified version of migration handler
This commit is full of bugs (in LeRelation etc.)
9 years ago
Yann Weber
0c046ab0a3
Small bugfixes in utils
9 years ago
ArnAud
16d65606d3
SQL utils: use the right function name
9 years ago
Yann Weber
8905246218
New version of MySQL utils
9 years ago
ArnAud
c3bfb07246
group for SQL group not groups
9 years ago
Roland Haroutiounian
6f4f69ec6e
LeRelation : Modification de l'implémentation du max_rank
9 years ago
ArnAud
b1b13f4afa
crud, SQL: implement order, group, limit and offset in get() request
9 years ago
Roland Haroutiounian
141ba96de3
Deleted the get_relation call in leapidatasource's update_rank method
9 years ago
Roland Haroutiounian
6b92ec7d9b
Changed the leapidatasource's update_rank method according to the LeRelation.set_rank method's changes
9 years ago
Yann Weber
b8266f3303
Update relations rank modifications
9 years ago
Roland Haroutiounian
b8b9914567
Changed the returned value in case of failure on the update rank query in LeRelation
9 years ago
Roland Haroutiounian
60d73ba307
Added the boolean return to the update_rank method
9 years ago
ArnAud
95deb4574e
SQL datasource: insert method for relations
9 years ago
ArnAud
ceef5f4b9b
SQL: table name are lowercase
9 years ago
Yann Weber
1782153774
Add a test_query to the datasource select test method
The query is something like Textes.select(fields = ['lodel_id', 'titre'], filters = ['lodel_id = 42', 'soustitre = "foobar"'])
9 years ago
Yann Weber
f911a389de
Add a test for MySQL datasource select method
Test only select on LeObject childs without relational_filters
9 years ago
Yann Weber
9e5e8a8433
Move test directory in MySQL for MySQL tests
9 years ago
Roland Haroutiounian
4af1606b04
Added a first implementation of the set_rank method in LeRelation
9 years ago
Yann Weber
0e54a47399
Add first tests on MySQL datasource ( mock party ! )
A test on datasource __init__ method
A test on datasource insert method (for leobject inserts only) <= this test uses a lot of mocks and can maybe be factorised
9 years ago
ArnAud
1a2c0f6a45
sqlDatasource: insert() for a hierarchical relation
9 years ago
Yann Weber
4383606fbb
Write an instance creation script and replace the SQLMigrationHandler by the MysqlMigrationHandler
see README.md for more informations about instance creation
9 years ago
Yann Weber
3ae2e6e613
Moved all modules related to DB in the DataSource folder ( fixes #88 )
9 years ago
ArnAud
a5efcdbfd8
SQL datasource: implement LeClass.get() and LeType.get()
9 years ago
ArnAud
d854b468e0
Lodel: first draft of Settings class
9 years ago
ArnAud
9fdb73106d
SQL: do queries in one function
9 years ago
Roland Haroutiounian
565045b413
PEP8/Pylint on DataSource MySQL
9 years ago
ArnAud
b1dd977a8b
DataSource MySQL: change variable name
9 years ago
Yann Weber
94a5afcdd7
Implements _LeObject.hierarchy_add() method and instroduce the class LeRoot
LeRoot represents hierarchy root
9 years ago
Yann Weber
54ba4cc3c5
Implements get_relation in LeDatasourceSQL + some small changes in MySQL and MH
9 years ago
Yann Weber
24b758af9b
Updated some MySQL properties and MigrationHandler stuff
9 years ago
Roland Haroutiounian
292a3dc8f6
[#76 ] The settings will be taken in a non versionned settings file
9 years ago
Roland Haroutiounian
cbd3d89426
[#63 ] PEP8/Pylint
9 years ago