Yann Weber
195cca24a4
Implementing check methods for each EmComponent child (and EmComponent)
No extended checks was done. Only tested if the check passes without syntax error and without failing with no reason
9 years ago
ArnAud
886cee22df
EmType : subordinates_list and fields_list
9 years ago
Yann Weber
99ee79b894
Removed the class attribute _fields from EmClass
9 years ago
Roland Haroutiounian
30bbd91f2c
[EmClass] pep8+pylint
9 years ago
Roland Haroutiounian
7e35eeedb7
[EmField] pep8+pylint
9 years ago
Roland Haroutiounian
3b12b84c9d
[EmFieldGroup] pep8+pylint
9 years ago
Yann Weber
405dd318dd
Added type check in EmComponent and childs class type check. Added some cast functions to Backend
9 years ago
Yann Weber
d6af3aaf46
Fixing EmFieldGroup (replacing self._fields access by direct attribute access)
9 years ago
Yann Weber
b6ef37752f
Supressed _fields from EmComponent and transforming the EmComponent in a standart object with standarts attributes
9 years ago
Roland Haroutiounian
77f91bc68b
[#44 ] EmClass: added the call to the check method in the delete process
9 years ago
Roland Haroutiounian
083daf67db
[#44 ] EmType : Added a check method and its call in the delete process
9 years ago
Roland Haroutiounian
b668556c3f
[#44 ] Ajout d'un début de méthode check et appel de celle-ci dans le delete
9 years ago
Yann Weber
7f93063f05
Rank at creation improvement
9 years ago
Yann Weber
c9f2f16c77
Added rank handling at component creation
At creation if no rank specified the component will be place last, else you can pass an integer representing an absolute rank or two specials strings 'last' or 'first'
9 years ago
Yann Weber
a2529cf8eb
Added a check method to EmComponent and EmClass
EmComponent::check() always return True but rearrange ranks if they are not continuous
9 years ago
ArnAud
ee9104fd57
EmType : implement .fields()
comment selected_fields because it clashes with ._fields[]
=> we have to rethink of ._fields[] and fieldtypes
9 years ago
ArnAud
55afedc863
EmType : .fieldgroups() filter using EmFieldGroups
9 years ago
Yann Weber
d5fde8287b
Written a first DummyMigrationHandler and modified Model __init__ method to have a migration_handler arguments
Now Model as an attribute named migration_handler
DummyMigrationHandler has only one method : register_change
9 years ago
ArnAud
f72799af24
EmFieldgroups: fields(self, type_id=0) can now filter fields for EmType request
9 years ago
Roland Haroutiounian
a5738476e0
[EmField] pep8 + pylint
9 years ago
Yann Weber
8bf864c597
Handling rank sorting in Model and rank modifier in EmComponent
9 years ago
ArnAud
338bccd785
EmType: implement fieldgroups()
9 years ago
ArnAud
3f30547252
Em Fieldtypes: a string value "0" should be seen as boolean false
9 years ago
ArnAud
143134ac52
EmFieldgroups: lint and pep8
9 years ago
Yann Weber
eb69492363
Deleted comments and bugfix on EmFieldGroup.fields()
9 years ago
ArnAud
619232c5d8
EM Model: pylint and pep8
9 years ago
Yann Weber
db62afb2a1
Updated EmClass to match the new Model
9 years ago
Roland Haroutiounian
df6c0b001d
[EmField] Change of the delete method (uses the model member of the class to perform that action)
9 years ago
ArnAud
d8f8943ca8
EM Model: use the appropriate dict
9 years ago
Roland Haroutiounian
9c5fad1b76
[EmFieldGroup] Deactivated the create method (soon to be deleted from the class members)
9 years ago
Roland Haroutiounian
f449ef8a89
[EmFieldGroup] Changed the delete and init methods
9 years ago
Roland Haroutiounian
10c516e404
[EmFieldGroup] Changed in the deletion process. Raises a NotEmptyError in case fields are still attached to the fieldgroup
9 years ago
Roland Haroutiounian
2fc6084c82
[EmFieldGroup] implementation of the EmField objects deletion on a EmFieldGroup deletion process
9 years ago
ArnAud
4803eba6a7
EmComponent: access to model is now named model !!
9 years ago
Yann Weber
9f0599939a
Update of Model.create_component method
9 years ago
Yann Weber
b87c276b26
Now EmComponents gets a Model instance when instanciate, and the Model._components dict structure has change a bit
Model._components now contains only one dict ( 'uids' key ) and the others are now list of EmComponent instances
Model now handle EVERY access to the _components dict
9 years ago
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 years ago
Roland Haroutiounian
06b5786c72
[EmFieldGroup] Modification de la méthode fields + pep8/pylint
9 years ago
Roland Haroutiounian
74b993fba4
[EmFieldGroup] Modification de la récup des noms de clés dans le dictionnaire components
9 years ago
Roland Haroutiounian
67707c6734
[EmFieldGroup] Update of the docstrings for the create method
9 years ago
ArnAud
e2ab8d9a25
EmType : implement classtype
9 years ago
Roland Haroutiounian
129ba00c41
[EmFieldGroup] Changed the create method of the class
9 years ago
Yann Weber
c94c23f6e2
Added create_component delete_component to Model class
9 years ago
Roland Haroutiounian
abdb50691a
[EmFieldGroup] Correction du nom d'une classe dans l'init
9 years ago
Roland Haroutiounian
ac181b4f27
[EmFieldGroup] Ajout du constructeur
9 years ago
ArnAud
cf2ea5f51e
EM Type : implement selected_fields()
9 years ago
ArnAud
e05422dd63
EM Type:get subordinates and fields in __init__
9 years ago
Roland Haroutiounian
912ddc5184
[Fieldgroups] Implémentation de la récupération de la liste des fields d'un fieldgroup à partir de self.components
9 years ago
ArnAud
79336030c7
EM: store in each component a reference to the list of the other
9 years ago
ArnAud
6f2d895462
EM: Model: store all components in one dict
9 years ago