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
cd99fb106b
lerelation: instanciate from data
2016-01-07 17:28:19 +01:00
Yann
222f10282d
Bugfixes due to properties name changes in LeRelation
2016-01-07 13:52:39 +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
7756b5b591
Adding the newly added properties to _LeObject and _LeRelation classes
2016-01-07 11:59:59 +01:00
ArnAud
d509fdf196
LeRelation: first draft of method to instanciate from a dict of data
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
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
Roland Haroutiounian
141ba96de3
Deleted the get_relation call in leapidatasource's update_rank method
2015-12-17 14:06:03 +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
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
67dbe5c097
Implements relation stuff + a lot of fixes in tests and in leo fieldtypes validation stack
2015-12-03 17:41:59 +01:00
Yann
117ecad86a
Bugfix in super calls + tests modification given modifications in _prepare_filters
2015-12-03 13:56:48 +01:00
Yann
59d489bd67
Implements delete instance methods for relations classes
2015-12-03 11:29:59 +01:00
Roland Haroutiounian
b02030b9fa
[ #87 ] deleted a "pass" instruction
2015-12-02 16:12:55 +01:00
Yann
4b4e465bb6
Implements utils function in LeType add_superior (hierarchy) and link_with (rel2type) and add a forgotten file
...
Implements a utils method in _LeRel2Type to fetch a rel2type leapi class name given a superior and a subordinate
2015-12-02 16:09:48 +01:00
Roland Haroutiounian
71443679d5
[87] delete method from LeRelation can now take a string as parameter for the target_class
2015-12-02 14:59:55 +01:00
Roland Haroutiounian
d5169cf9a1
[ #87 ] Added the delete method to LeRelation
2015-12-02 12:00:35 +01:00
Roland Haroutiounian
6817d3e010
First implementation of the _prepare_filters method in LeRelation class
2015-11-27 17:25:20 +01:00
Yann
90173e9dea
Added multiples tests on types in _LeCrud + check given class when inserting
2015-11-27 16:19:47 +01:00
Yann
a0a83ad19b
Add test + small bugfixes in fieldtypes + implementations of short utils methods
2015-11-27 15:59:06 +01:00
Yann
6da730f782
Write some test for LeRelation + __eq__ for LeObject + import bugfix in LeRelation
...
The test are skipped and can be unskipped as soon as LeRelation._prepare_filters() is implemented
2015-11-27 14:25:16 +01:00
Yann
1cd5998a88
Implements partial instanciation of LeObjects + utility classmethod for LeRelation
2015-11-27 14:11:53 +01:00
Roland Haroutiounian
598af04b4c
Corrected the LeApiQueryError import in LeRelation module
2015-11-27 12:21:59 +01:00
Yann
61786cc71e
Updated generated code with LeRel2Type child classes
2015-11-27 11:21:01 +01:00
Yann
9cc1e8ab96
Started LeRelation and childs implementation
...
Begin to work on fieldtypes
2015-11-26 16:56:41 +01:00