ArnAud
|
c3bfb07246
|
group for SQL group not groups
|
8 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 |
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 |
Roland Haroutiounian
|
4af1606b04
|
Added a first implementation of the set_rank method in LeRelation
|
9 years ago |
ArnAud
|
1a2c0f6a45
|
sqlDatasource: insert() for a hierarchical relation
|
9 years ago |
Yann Weber
|
3ae2e6e613
|
Moved all modules related to DB in the DataSource folder ( fixes #88 )
|
9 years ago |
ArnAud
|
3167f17160
|
ledatasourcesql: implement Letype.update()
|
9 years ago |
ArnAud
|
2b87c1ce86
|
ledatasourcesql: use del in python, not PHP's unset ;)
|
9 years ago |
ArnAud
|
142f2ff3f5
|
LeCrud: is_letype() and is_leclass() helper functions + use it in LeDataSourceSQL
|
9 years ago |
ArnAud
|
a5efcdbfd8
|
SQL datasource: implement LeClass.get() and LeType.get()
|
9 years ago |
ArnAud
|
9d16c6a4c8
|
SQL datasource: implement get() from LeObject
|
9 years ago |
ArnAud
|
386a761db1
|
sql datasource: insert an object
|
9 years ago |
Yann Weber
|
1558dcf519
|
Updated LeFactory. Now generating LeClass and LeType from _LeClass and _LeType
|
9 years ago |
Roland Haroutiounian
|
0375755f3e
|
[#85] Update method now uses the relationnal filters
|
9 years ago |
Roland Haroutiounian
|
eca769f3ee
|
[#85] Deleted an old TODO item
|
9 years ago |
Roland Haroutiounian
|
dca5d2d1ca
|
[#85] The update method of the LeDataSourceSQL class returns the number of updated rows
|
9 years ago |
Roland Haroutiounian
|
da8c8ec532
|
[#85] The delete method of LeDataSourceSQL returns the number of deleted rows
|
9 years ago |
Roland Haroutiounian
|
235ea74d9b
|
[#85] Partial reimplementation of leDataSourceSQL
|
9 years ago |
Yann Weber
|
e335019f79
|
Renamed the package leobject in leapi
|
9 years ago |
ArnAud
|
9fdb73106d
|
SQL: do queries in one function
|
9 years ago |
Yann Weber
|
def4233c89
|
Bugfix : make a copy of connections settings in ledatasource constructor to avoid configuration modification
We should maybe find a way to return a copy of the settings un Datasource/MySQL/MySQL.py
|
9 years ago |
ArnAud
|
e062f1697a
|
SQL datasource: use args from the settings
|
9 years ago |
ArnAud
|
04aa093ccf
|
SQL datasource: use Cursor.lastrowid instead of an SQL query
|
9 years ago |
ArnAud
|
5517eb0c26
|
SQL datasource: return one id if only inserted one
|
9 years ago |
Roland Haroutiounian
|
4a4204de17
|
relational fields in the delete_related method
|
9 years ago |
ArnAud
|
66251f3788
|
datasourcesql : use object table when no class or type
|
9 years ago |
Yann Weber
|
7b647c5ba4
|
Changed a comment
|
9 years ago |
Yann Weber
|
e3187a0ae9
|
Bugfix on add related + 2 todo on del_related
|
9 years ago |
Yann Weber
|
d45b84c5d9
|
Implements get_related in MySQL datasource
|
9 years ago |
Roland Haroutiounian
|
aaa4268afa
|
[#74] del_related method is usable in LeDataSourceSQL
|
9 years ago |
Roland Haroutiounian
|
69306a9357
|
[#69] Dealing with all kind of natures and not only "parent" (in LeDataSourceSQL.add_superior)
|
9 years ago |
Roland Haroutiounian
|
1e8e10b569
|
[#69] "parent" nature is now taken from EditorialModel.classtypes.EmNature
|
9 years ago |
Roland Haroutiounian
|
6a4a7af931
|
[#69] Added the code to add the relations to all the superiors in a hierarchy
|
9 years ago |
Yann Weber
|
668d97e2fb
|
Implements add_related set_relation_rank in MySQL ledatasource and updated get_relation
|
9 years ago |
Yann Weber
|
76c1174509
|
Implements get_subordinates in the MySQL datasource
|
9 years ago |
Roland Haroutiounian
|
75d47527ee
|
get_superiors query is ordered by depth desc
|
9 years ago |
Roland Haroutiounian
|
74e6c2b7da
|
[#71] get_superiors method's first implementation
|
9 years ago |
Roland Haroutiounian
|
fa4e45d4c5
|
[#69] First implementation of add_superior, without the recursive calls
* add_superior's implementation in LeDataSourceSQL
* cleaning the code
|
9 years ago |
Yann Weber
|
54ba4cc3c5
|
Implements get_relation in LeDatasourceSQL + some small changes in MySQL and MH
|
9 years ago |
Roland Haroutiounian
|
0ad4e3c9fd
|
[#67] del_relation method now uses only a relation id as argument
|
9 years ago |
Roland Haroutiounian
|
b202a7933d
|
[#68] get_relations method uses only one argument which is the object from which we want the relations
|
9 years ago |
Roland Haroutiounian
|
70c237d65f
|
[#68] get_relations method is implemented in LeDataSourceSQL
|
9 years ago |
Roland Haroutiounian
|
b062a28e7b
|
[#67] del_relation is declared implemented
|
9 years ago |
Roland Haroutiounian
|
492e2c1c25
|
[#67] Delete of a relation is implemented now in LeDataSourceSQL
* The two mandatory arguments of the del_relation method are checked
|
9 years ago |
Roland Haroutiounian
|
cbd3d89426
|
[#63] PEP8/Pylint
|
9 years ago |