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
8eea3495e8
leapi: put name2classname() from LeFactory in _LeCrud to be available everywhere
9 years ago
Yann Weber
222f10282d
Bugfixes due to properties name changes in LeRelation
9 years ago
Yann Weber
e44dbcbad8
Add -f option to rm in Makefiles and changes 2 properties names in generated code
9 years ago
Yann Weber
9711cc65dc
Add a new propertie to LeObject dynamic class : _me_uid_field_names (stores the names of the fields _class_id and _type_id)
9 years ago
Yann Weber
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
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
Yann Weber
bde008a68c
Updated lefactory (unused attr in relations)
9 years ago
Yann Weber
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
9 years ago
Yann Weber
61786cc71e
Updated generated code with LeRel2Type child classes
9 years ago
Yann Weber
9cc1e8ab96
Started LeRelation and childs implementation
Begin to work on fieldtypes
9 years ago
Yann Weber
52cbce9865
Changed LeFactory generated code (again) + Bugfix on LeCrud + more tests and tests update
9 years ago
Yann Weber
1558dcf519
Updated LeFactory. Now generating LeClass and LeType from _LeClass and _LeType
9 years ago
Yann Weber
169fc906c0
Bugfix in Lefactory, changed parent class list (LeObject last)
9 years ago
Yann Weber
187886362d
Updated LeFactory generated code and LeFactory class itself
Bugfixes in generated code imports
Enhancement on generated classes retrieval
9 years ago
Yann Weber
0af03c93d6
Import Bugfix + LeFactory generated code update
9 years ago
Yann Weber
e335019f79
Renamed the package leobject in leapi
9 years ago
Yann Weber
76e2cc0d4e
LeFactory update : LeCrud concrete object code is now generated + removed some obsolete class attributes of _LeObject
Updated the _LeObject tests to use the dynamic code
9 years ago
Yann Weber
74b5461abe
Deleting the EditorialModel from leobject API generated code
9 years ago
Yann Weber
7242b685d2
Pep8 on LeFactory generated code
9 years ago
Yann Weber
61ccc04772
Bugfix in lefactory
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
10379c6a95
Fieldgroups are deleted
9 years ago
Yann Weber
fb848fd1dd
Begin to work on relations API but some problems appear
9 years ago
Yann Weber
0d88ebca62
Add relation modification methods to LeType
9 years ago
Yann Weber
7b0df11496
Removing rel2type fields and rel2type attributes fields from LeClass and LeType fields lists
9 years ago
Roland Haroutiounian
a904ac0a09
PEP8/Pylint on lefactory.py
9 years ago
Yann Weber
052ddd4ce8
Bugfixes in lefactory and letype
Deleted the classinstancemethod decorator because of inheritance problems (not sure they were real...)
Add a shortcut method to LeFactory to get the generated LeObject class
+ bugfixes
9 years ago
Yann Weber
1d29e95951
Add tests for LeObject + bufix
9 years ago
Yann Weber
1c4e2ddba8
Some Doxygen comments fix
9 years ago
Yann Weber
0be8db4d00
Complete the LeFactory generated code tests, add a __hash__ method for fieldtypes
9 years ago
Yann Weber
f029a95214
Add tests for LeFactory generated code
9 years ago
Yann Weber
0f0a636eac
Add LeObject._me_uid dict populate in LeFactory + code factorisation
9 years ago
Yann Weber
589d7f2eef
Changed the way LeFactory generates python code
Added a test on LeFactory generated code
9 years ago
Yann Weber
250aa9e0ff
Add a class attribute to LeObject that maps EditorialModel uid with LeType and LeClass python class
9 years ago
Yann Weber
6123d23be4
Update the _LeObject.get() method to handle relationnal filters
9 years ago
Yann Weber
0c51d6a483
Added some class property to LeFactory generated classes to avoid Model calls
9 years ago
Yann Weber
896c061327
[LeFactory] changed the way LeType and LeClass stores fieldgroups, fields and fieldtypes
9 years ago
Yann Weber
f27bb26f9a
Introduction of LeFactory and its generatePython method
LeFactory.generatePython() is a method that generate LeObject code and python classes for each EmClass and EmType in an EditorialModel
9 years ago