Roland Haroutiounian
b668556c3f
[ #44 ] Ajout d'un début de méthode check et appel de celle-ci dans le delete
2015-07-24 11:13:02 +02:00
Yann
7f93063f05
Rank at creation improvement
2015-07-24 11:03:06 +02:00
Yann
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'
2015-07-24 10:43:10 +02:00
Yann
a2529cf8eb
Added a check method to EmComponent and EmClass
...
EmComponent::check() always return True but rearrange ranks if they are not continuous
2015-07-23 17:32:18 +02:00
ArnAud
ee9104fd57
EmType : implement .fields()
...
comment selected_fields because it clashes with ._fields[]
=> we have to rethink of ._fields[] and fieldtypes
2015-07-23 17:27:10 +02:00
ArnAud
55afedc863
EmType : .fieldgroups() filter using EmFieldGroups
2015-07-23 17:00:42 +02:00
Yann
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
2015-07-23 16:50:06 +02:00
ArnAud
f72799af24
EmFieldgroups: fields(self, type_id=0) can now filter fields for EmType request
2015-07-23 16:42:04 +02:00
Roland Haroutiounian
a5738476e0
[EmField] pep8 + pylint
2015-07-23 16:24:25 +02:00
Yann
8bf864c597
Handling rank sorting in Model and rank modifier in EmComponent
2015-07-23 16:22:36 +02:00
ArnAud
338bccd785
EmType: implement fieldgroups()
2015-07-23 16:08:28 +02:00
ArnAud
3f30547252
Em Fieldtypes: a string value "0" should be seen as boolean false
2015-07-23 15:02:40 +02:00
ArnAud
143134ac52
EmFieldgroups: lint and pep8
2015-07-23 14:47:45 +02:00
Yann
eb69492363
Deleted comments and bugfix on EmFieldGroup.fields()
2015-07-23 14:36:34 +02:00
ArnAud
619232c5d8
EM Model: pylint and pep8
2015-07-23 14:33:39 +02:00
Yann
db62afb2a1
Updated EmClass to match the new Model
2015-07-23 14:27:49 +02:00
Roland Haroutiounian
df6c0b001d
[EmField] Change of the delete method (uses the model member of the class to perform that action)
2015-07-23 14:26:46 +02:00
ArnAud
d8f8943ca8
EM Model: use the appropriate dict
2015-07-23 14:22:44 +02:00
Roland Haroutiounian
9c5fad1b76
[EmFieldGroup] Deactivated the create method (soon to be deleted from the class members)
2015-07-23 14:19:05 +02:00
Roland Haroutiounian
f449ef8a89
[EmFieldGroup] Changed the delete and init methods
2015-07-23 14:17:08 +02:00
Roland Haroutiounian
10c516e404
[EmFieldGroup] Changed in the deletion process. Raises a NotEmptyError in case fields are still attached to the fieldgroup
2015-07-23 14:12:43 +02:00
Roland Haroutiounian
2fc6084c82
[EmFieldGroup] implementation of the EmField objects deletion on a EmFieldGroup deletion process
2015-07-23 14:12:43 +02:00
ArnAud
4803eba6a7
EmComponent: access to model is now named model !!
2015-07-23 14:11:57 +02:00
Yann
9f0599939a
Update of Model.create_component method
2015-07-23 14:10:03 +02:00
Yann
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
2015-07-23 14:02:48 +02:00
Yann
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
2015-07-23 11:24:57 +02:00
Roland Haroutiounian
06b5786c72
[EmFieldGroup] Modification de la méthode fields + pep8/pylint
2015-07-23 11:04:22 +02:00
Roland Haroutiounian
74b993fba4
[EmFieldGroup] Modification de la récup des noms de clés dans le dictionnaire components
2015-07-23 11:00:06 +02:00
Roland Haroutiounian
67707c6734
[EmFieldGroup] Update of the docstrings for the create method
2015-07-23 11:00:06 +02:00
ArnAud
e2ab8d9a25
EmType : implement classtype
2015-07-23 10:57:02 +02:00
Roland Haroutiounian
129ba00c41
[EmFieldGroup] Changed the create method of the class
2015-07-23 09:20:25 +02:00
Yann
c94c23f6e2
Added create_component delete_component to Model class
2015-07-23 09:15:39 +02:00
Roland Haroutiounian
abdb50691a
[EmFieldGroup] Correction du nom d'une classe dans l'init
2015-07-23 09:00:18 +02:00
Roland Haroutiounian
ac181b4f27
[EmFieldGroup] Ajout du constructeur
2015-07-23 08:59:29 +02:00
ArnAud
cf2ea5f51e
EM Type : implement selected_fields()
2015-07-22 17:30:28 +02:00
ArnAud
e05422dd63
EM Type:get subordinates and fields in __init__
2015-07-22 17:24:45 +02:00
Roland Haroutiounian
912ddc5184
[Fieldgroups] Implémentation de la récupération de la liste des fields d'un fieldgroup à partir de self.components
2015-07-22 16:07:44 +02:00
ArnAud
79336030c7
EM: store in each component a reference to the list of the other
2015-07-22 14:59:14 +02:00
ArnAud
6f2d895462
EM: Model: store all components in one dict
2015-07-22 14:54:09 +02:00
ArnAud
71a1e852dc
EM: a canonical EM in json
2015-07-22 14:08:36 +02:00
ArnAud
adec82093b
delete SQL requirements
2015-07-22 14:08:04 +02:00
ArnAud
a9422795c7
EM: model: create a dict for each component
2015-07-17 17:28:27 +02:00
ArnAud
5e799d0aa7
EM: todos
2015-07-17 17:06:16 +02:00
ArnAud
e85e19c4b1
ME: basic ME for tests
2015-07-17 14:59:25 +02:00
ArnAud
55b030800f
Em: draft for fieldgroup
2015-07-17 13:52:32 +02:00
Roland Haroutiounian
89d45ab799
[EmType] pep8 + pylint
2015-07-17 11:38:12 +02:00
Roland Haroutiounian
d50a89ec36
[Fieldgroups] pep8
2015-07-17 11:24:19 +02:00
Roland Haroutiounian
867ad023be
[ClassTypes et Fields] Mise en commentaire des imports obsolètes et conformité pep8/pylint
2015-07-17 11:21:22 +02:00
Roland Haroutiounian
d169a9dd2e
[Backend Json] Modification du nom du fichier pour éviter les conflits avec le module json de python
2015-07-17 11:05:51 +02:00
Roland Haroutiounian
456403ba1b
[Model] mise en conformité pep8 et pylint
2015-07-17 10:56:00 +02:00