1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-06-30 04:50:48 +02:00
Commit graph

367 commits

Author SHA1 Message Date
Driky
cee5b53445 Correction syntax sur la nouvelle méthode d'ouverture du fichier json 2015-07-30 14:56:17 +02:00
Driky
b94f867764 Correction du warning sur la non fermeture du fichier json du quel est chargé le ME 2015-07-30 14:52:06 +02:00
Roland Haroutiounian
91e12a9df3 Merge branch 'new_me_tests' into new_me 2015-07-30 12:18:26 +02:00
Roland Haroutiounian
ba2ac6880c [Tests] Changed the tests for the EmField class using the new Model object 2015-07-30 12:17:34 +02:00
Roland Haroutiounian
113deb302d [EmComponent] added a test to not take uids into account in the hash computation process 2015-07-29 16:52:31 +02:00
Roland Haroutiounian
bf5704d361 [Model] pep8+pylint 2015-07-29 11:39:13 +02:00
Roland Haroutiounian
8b2bd59daf [EmField] pep8+pylint 2015-07-29 10:55:46 +02:00
Roland Haroutiounian
efcd7448d2 [EmFieldGroup] pep8+pylint 2015-07-29 10:54:06 +02:00
Roland Haroutiounian
33d163db8f [Exceptions] pep8+pylint on exceptions.py 2015-07-29 10:44:52 +02:00
Roland Haroutiounian
ccf36dfe8b [EditorialModel - classes] pep8+pylint on classes.py 2015-07-29 09:59:28 +02:00
Roland Haroutiounian
ab51b27b78 [migration handler] pylint+pep8 on migrationhandler/dummy.py 2015-07-29 09:55:42 +02:00
Roland Haroutiounian
53c3f1f687 [json_backend] pylint+pep8 on json_backend.py 2015-07-29 09:49:55 +02:00
Yann
6aa32322a0 SHA512 hash for Model 2015-07-24 17:41:08 +02:00
Roland Haroutiounian
0bf24b6c48 [#45] Changed the return of the hash methods, we get integer instead of string 2015-07-24 17:30:42 +02:00
ArnAud
674f72559d EmType : implement superiors() 2015-07-24 17:29:30 +02:00
Yann
4dfb751bb3 Removing a debug print 2015-07-24 17:27:23 +02:00
Yann
084b8af6c1 MigrationHandler enhancement (now records Model's hash for each changes). Better beaviour of Model.create_component if MigrationHandler raises 2015-07-24 17:23:12 +02:00
Roland Haroutiounian
873edf19a6 [#45] Reimplemented the __eq__ method of the Model class so that it uses the newly defined __hash__ method 2015-07-24 17:19:14 +02:00
Roland Haroutiounian
8a6fdd4c6a [#45] Added the __hash__ method implementation for the Model class 2015-07-24 17:18:18 +02:00
ArnAud
34fdd8d8b3 EmType: implement select and unselect _field 2015-07-24 17:17:28 +02:00
Roland Haroutiounian
c916801c99 [#45] Changed the __hash__ implementation of the EmComponent class 2015-07-24 16:53:55 +02:00
Yann
ed9133016f Fixing component deletion 2015-07-24 16:50:24 +02:00
Yann
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)
2015-07-24 16:36:21 +02:00
ArnAud
c28511bc3a EmType: check the nature of the subordinates 2015-07-24 15:48:53 +02:00
Yann
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
2015-07-24 15:42:24 +02:00
ArnAud
886cee22df EmType : subordinates_list and fields_list 2015-07-24 15:06:58 +02:00
Yann
99ee79b894 Removed the class attribute _fields from EmClass 2015-07-24 14:11:37 +02:00
Roland Haroutiounian
30bbd91f2c [EmClass] pep8+pylint 2015-07-24 13:52:32 +02:00
Roland Haroutiounian
7e35eeedb7 [EmField] pep8+pylint 2015-07-24 13:45:47 +02:00
Roland Haroutiounian
3b12b84c9d [EmFieldGroup] pep8+pylint 2015-07-24 13:43:59 +02:00
Yann
405dd318dd Added type check in EmComponent and childs class type check. Added some cast functions to Backend 2015-07-24 12:46:04 +02:00
Yann
d6af3aaf46 Fixing EmFieldGroup (replacing self._fields access by direct attribute access) 2015-07-24 12:07:03 +02:00
Yann
b6ef37752f Supressed _fields from EmComponent and transforming the EmComponent in a standart object with standarts attributes 2015-07-24 12:03:39 +02:00
Roland Haroutiounian
77f91bc68b [#44] EmClass: added the call to the check method in the delete process 2015-07-24 11:33:30 +02:00
Roland Haroutiounian
083daf67db [#44] EmType : Added a check method and its call in the delete process 2015-07-24 11:16:02 +02:00
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