Roland Haroutiounian
33d163db8f
[Exceptions] pep8+pylint on exceptions.py
пре 9 година
Roland Haroutiounian
ccf36dfe8b
[EditorialModel - classes] pep8+pylint on classes.py
пре 9 година
Roland Haroutiounian
ab51b27b78
[migration handler] pylint+pep8 on migrationhandler/dummy.py
пре 9 година
Roland Haroutiounian
53c3f1f687
[json_backend] pylint+pep8 on json_backend.py
пре 9 година
Yann Weber
6aa32322a0
SHA512 hash for Model
пре 9 година
Roland Haroutiounian
0bf24b6c48
[#45 ] Changed the return of the hash methods, we get integer instead of string
пре 9 година
ArnAud
674f72559d
EmType : implement superiors()
пре 9 година
Yann Weber
4dfb751bb3
Removing a debug print
пре 9 година
Yann Weber
084b8af6c1
MigrationHandler enhancement (now records Model's hash for each changes). Better beaviour of Model.create_component if MigrationHandler raises
пре 9 година
Roland Haroutiounian
873edf19a6
[#45 ] Reimplemented the __eq__ method of the Model class so that it uses the newly defined __hash__ method
пре 9 година
Roland Haroutiounian
8a6fdd4c6a
[#45 ] Added the __hash__ method implementation for the Model class
пре 9 година
ArnAud
34fdd8d8b3
EmType: implement select and unselect _field
пре 9 година
Roland Haroutiounian
c916801c99
[#45 ] Changed the __hash__ implementation of the EmComponent class
пре 9 година
Yann Weber
ed9133016f
Fixing component deletion
пре 9 година
Yann Weber
fe9184f608
Reimplementig EmComponent::__setattr__ to call migration handler
Addding a method to indicate the end of a component initialisation phase (used in Model.load and Model.create_component)
Adding a method that dump component attributes (used in Model.create_component and Model.delete_component to call the migration_handler)
пре 9 година
ArnAud
c28511bc3a
EmType: check the nature of the subordinates
пре 9 година
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 година
ArnAud
886cee22df
EmType : subordinates_list and fields_list
пре 9 година
Yann Weber
99ee79b894
Removed the class attribute _fields from EmClass
пре 9 година
Roland Haroutiounian
30bbd91f2c
[EmClass] pep8+pylint
пре 9 година
Roland Haroutiounian
7e35eeedb7
[EmField] pep8+pylint
пре 9 година
Roland Haroutiounian
3b12b84c9d
[EmFieldGroup] pep8+pylint
пре 9 година
Yann Weber
405dd318dd
Added type check in EmComponent and childs class type check. Added some cast functions to Backend
пре 9 година
Yann Weber
d6af3aaf46
Fixing EmFieldGroup (replacing self._fields access by direct attribute access)
пре 9 година
Yann Weber
b6ef37752f
Supressed _fields from EmComponent and transforming the EmComponent in a standart object with standarts attributes
пре 9 година
Roland Haroutiounian
77f91bc68b
[#44 ] EmClass: added the call to the check method in the delete process
пре 9 година
Roland Haroutiounian
083daf67db
[#44 ] EmType : Added a check method and its call in the delete process
пре 9 година
Roland Haroutiounian
b668556c3f
[#44 ] Ajout d'un début de méthode check et appel de celle-ci dans le delete
пре 9 година
Yann Weber
7f93063f05
Rank at creation improvement
пре 9 година
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 година
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 година
ArnAud
ee9104fd57
EmType : implement .fields()
comment selected_fields because it clashes with ._fields[]
=> we have to rethink of ._fields[] and fieldtypes
пре 9 година
ArnAud
55afedc863
EmType : .fieldgroups() filter using EmFieldGroups
пре 9 година
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 година
ArnAud
f72799af24
EmFieldgroups: fields(self, type_id=0) can now filter fields for EmType request
пре 9 година
Roland Haroutiounian
a5738476e0
[EmField] pep8 + pylint
пре 9 година
Yann Weber
8bf864c597
Handling rank sorting in Model and rank modifier in EmComponent
пре 9 година
ArnAud
338bccd785
EmType: implement fieldgroups()
пре 9 година
ArnAud
3f30547252
Em Fieldtypes: a string value "0" should be seen as boolean false
пре 9 година
ArnAud
143134ac52
EmFieldgroups: lint and pep8
пре 9 година
Yann Weber
eb69492363
Deleted comments and bugfix on EmFieldGroup.fields()
пре 9 година
ArnAud
619232c5d8
EM Model: pylint and pep8
пре 9 година
Yann Weber
db62afb2a1
Updated EmClass to match the new Model
пре 9 година
Roland Haroutiounian
df6c0b001d
[EmField] Change of the delete method (uses the model member of the class to perform that action)
пре 9 година
ArnAud
d8f8943ca8
EM Model: use the appropriate dict
пре 9 година
Roland Haroutiounian
9c5fad1b76
[EmFieldGroup] Deactivated the create method (soon to be deleted from the class members)
пре 9 година
Roland Haroutiounian
f449ef8a89
[EmFieldGroup] Changed the delete and init methods
пре 9 година
Roland Haroutiounian
10c516e404
[EmFieldGroup] Changed in the deletion process. Raises a NotEmptyError in case fields are still attached to the fieldgroup
пре 9 година
Roland Haroutiounian
2fc6084c82
[EmFieldGroup] implementation of the EmField objects deletion on a EmFieldGroup deletion process
пре 9 година
ArnAud
4803eba6a7
EmComponent: access to model is now named model !!
пре 9 година