Yann
e7c1af45d9
Code cleaning for generic fieldtype
2016-01-14 17:19:28 +01:00
Yann
1daf9677c6
Implements order in fieldtype construct
2016-01-14 16:36:46 +01:00
Yann
173564b7ee
New constants in EditorialModel.classtypes
2016-01-14 14:28:50 +01:00
Yann
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)
2016-01-11 14:03:01 +01:00
ArnAud
53663603fa
lecrud: get() flag instanciate to choose to get raw data or objects
2016-01-08 14:26:15 +01:00
Yann
f2a54b72cd
Comments update for doxygen doc
...
Now we have a main page on doxygen
2016-01-08 13:52:37 +01:00
Yann
b34ce35e85
Removed unused & obsolete code in leapi/letype.py
2016-01-08 12:23:31 +01:00
ArnAud
ff8b0dd10a
lecrud.update(): do not check data consistency on update: must be done later
2016-01-08 12:19:09 +01:00
ArnAud
cd99fb106b
lerelation: instanciate from data
2016-01-07 17:28:19 +01:00
Yann
680ad61036
Fixed LeFactory tests
2016-01-07 17:23:58 +01:00
ArnAud
8eea3495e8
leapi: put name2classname() from LeFactory in _LeCrud to be available everywhere
2016-01-07 17:16:14 +01:00
Yann
ef8f961c2b
Removed old code
2016-01-07 14:41:49 +01:00
Yann
9b7d8c0357
Changes the doc and make change in partial instanciation process
2016-01-07 14:39:10 +01:00
Yann
222f10282d
Bugfixes due to properties name changes in LeRelation
2016-01-07 13:52:39 +01:00
Yann
e44dbcbad8
Add -f option to rm in Makefiles and changes 2 properties names in generated code
2016-01-07 13:52:39 +01:00
ArnAud
0cfd0b7f7b
leapi: datas() can be in _lecrud
2016-01-07 13:40:49 +01:00
Yann
0b3f2bae1a
New way to instanciate LeCrud child classes
...
Note : This commit is not complete. It brakes the partial instanciation of classes etc.
2016-01-07 13:20:30 +01:00
Yann
b643477e3c
Fixing syntax error
2016-01-07 12:03:01 +01:00
Yann
7756b5b591
Adding the newly added properties to _LeObject and _LeRelation classes
2016-01-07 11:59:59 +01:00
Yann
9711cc65dc
Add a new propertie to LeObject dynamic class : _me_uid_field_names (stores the names of the fields _class_id and _type_id)
2016-01-07 11:55:29 +01:00
Yann
3fbe9b69d5
Add 2 properties for LeRel2Type dynamically generated child classes
...
The two new properties are :
- superior_cls stores a LeObject child class
- subordinate_cls stores a LeObject child class
2016-01-07 11:55:29 +01:00
ArnAud
d509fdf196
LeRelation: first draft of method to instanciate from a dict of data
2016-01-07 11:50:17 +01:00
ArnAud
44665600ef
leType: relations use superior and subordinate name now
2016-01-07 11:50:17 +01:00
ArnAud
94e6cbf81e
LeObject: method to instanciate from a dict of data
2016-01-07 11:50:17 +01:00
ArnAud
942826e5e6
LeClass.fieldlist() returns a list
2016-01-07 11:50:17 +01:00
Yann
89667ee1d1
Fixing tests and other classes to fit recent changes
2016-01-06 16:07:24 +01:00
Yann
146c0fd69b
Finish the new version of migrationhandler + modifications in leFactory and LeRelation (to handle generic lesup & lesub in LeRelation)
2016-01-06 15:43:04 +01:00
ArnAud
a3f7cf3fa0
leapi: helper leo_class() to get class of a lodel object
2016-01-06 15:32:13 +01:00
ArnAud
3143719d9c
LeCrud: fieldlist() returns a True list
2016-01-06 14:27:02 +01:00
ArnAud
c3bfb07246
group for SQL group not groups
2016-01-06 10:09:07 +01:00
Yann
cf691c6538
Add a test on LeCrud.select() method (test order, groups, limit and offset arguments) + small bugfixes
2015-12-29 11:35:07 +01:00
Roland Haroutiounian
f3108d95d8
Casts the rank value from the resultset in LeRelation.get_max_rank() to an int
2015-12-18 14:43:47 +01:00
Roland Haroutiounian
e55187cbf7
Fixed the call to get method in LeRelation.get_max_rank()
2015-12-18 14:42:39 +01:00
Roland Haroutiounian
6f4f69ec6e
LeRelation : Modification de l'implémentation du max_rank
2015-12-18 12:23:13 +01:00
ArnAud
07c18a9093
rel2type.insert() : return the id of inserted relation
2015-12-18 11:39:36 +01:00
ArnAud
b1b13f4afa
crud, SQL: implement order, group, limit and offset in get() request
2015-12-18 11:22:47 +01:00
Yann
c36c13e709
Add test for _prepare_order_fields
2015-12-17 16:43:10 +01:00
Yann
5515155cd9
Implement order by and group by in leobject.get
2015-12-17 16:25:00 +01:00
Yann
9b012f2566
Moved the doxygen leobject_filter in lecrud + update it
2015-12-17 14:19:46 +01:00
Roland Haroutiounian
141ba96de3
Deleted the get_relation call in leapidatasource's update_rank method
2015-12-17 14:06:03 +01:00
Yann
7b22eef33b
Add two more operators for filters : "like" and "not like" + updates the associated tests
2015-12-17 13:55:07 +01:00
Roland Haroutiounian
6b92ec7d9b
Changed the leapidatasource's update_rank method according to the LeRelation.set_rank method's changes
2015-12-17 13:34:44 +01:00
Yann
b8266f3303
Update relations rank modifications
2015-12-17 12:30:04 +01:00
Yann
1ba59c513e
Deleted obsolete test file
2015-12-17 11:17:37 +01:00
ArnAud
95deb4574e
SQL datasource: insert method for relations
2015-12-17 11:14:10 +01:00
Roland Haroutiounian
4af1606b04
Added a first implementation of the set_rank method in LeRelation
2015-12-16 17:31:39 +01:00
Roland Haroutiounian
5a21025d89
Added a _parse_rank method in LeRelation and the corresponding tests
2015-12-16 11:55:55 +01:00
Yann
339545e89a
Add some tests for LeCrud utils methods
2015-12-16 09:11:28 +01:00
ArnAud
1a2c0f6a45
sqlDatasource: insert() for a hierarchical relation
2015-12-04 09:41:55 +01:00
Yann
67dbe5c097
Implements relation stuff + a lot of fixes in tests and in leo fieldtypes validation stack
2015-12-03 17:41:59 +01:00