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 роки тому
ArnAud
eb8d282857
test Model: char fields should be nullable
9 роки тому
Yann Weber
10379c6a95
Fieldgroups are deleted
9 роки тому
ArnAud
a4dacc654a
classtype: use the same naming pattern for *_id fields
9 роки тому
Yann Weber
384ffb006b
Default fields processing changes + updated the me.json
Now on load default fields for EmClass are created. The EmClass.check method create them if they are not present.
9 роки тому
Yann Weber
a9bf80d83d
Adding a second possible parent for the EmType rubrique in me.json
9 роки тому
ArnAud
2e1c517f01
testMe : add a fieldgroup with only optional field in it
9 роки тому
ArnAud
644f76b14d
Emtype: superiors_list should be a dict with list of int
=> a type can have multiple superiors (only instance of LeObject can have one)
9 роки тому
ArnAud
e57598690d
TestMe: add a type with no superior
9 роки тому
ArnAud
2379d6031d
Tests: add an unselected optional field to test ME
9 роки тому
ArnAud
9131f7bcd2
EmField: type attribute is now called fieldtype
9 роки тому
ArnAud
a89cfa4429
EmType: use superiors_list instead of subordinates_list to save type hierarchy
9 роки тому
ArnAud
7a97bc16fb
test ME: rank was not correct
9 роки тому
Yann Weber
d199d571bd
Cleaning & commenting + adding warning
9 роки тому
Yann Weber
5d71d29f91
Updated the me.json
9 роки тому
Yann Weber
0dd07ea281
[Broken] Make the MH using the to_django method of EmField and me.json updates
Added a fieldtype varchar to me.json
There is a bug with django fields default values
9 роки тому
ArnAud
34fdd8d8b3
EmType: implement select and unselect _field
9 роки тому
ArnAud
886cee22df
EmType : subordinates_list and fields_list
9 роки тому
Yann Weber
b6ef37752f
Supressed _fields from EmComponent and transforming the EmComponent in a standart object with standarts attributes
9 роки тому
ArnAud
ee9104fd57
EmType : implement .fields()
comment selected_fields because it clashes with ._fields[]
=> we have to rethink of ._fields[] and fieldtypes
9 роки тому
ArnAud
f72799af24
EmFieldgroups: fields(self, type_id=0) can now filter fields for EmType request
9 роки тому
ArnAud
338bccd785
EmType: implement fieldgroups()
9 роки тому
Yann Weber
6a56b31ba5
Migrating EmClass methods and EmComponent.delete according to the new Model object, changed the Model.components dict keys (and the json test file)
There is now two methods Model.name_from_emclass and emclass_from_name that allows to access the Model.components array
9 роки тому
ArnAud
6f2d895462
EM: Model: store all components in one dict
9 роки тому
ArnAud
71a1e852dc
EM: a canonical EM in json
9 роки тому
ArnAud
e85e19c4b1
ME: basic ME for tests
9 роки тому
ArnAud
55b030800f
Em: draft for fieldgroup
9 роки тому
ArnAud
c73251795c
EM: first draft for a Model Class
9 роки тому