1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-08-08 05:18:37 +02:00
Commit graph

62 commits

Author SHA1 Message Date
Yann
10379c6a95 Fieldgroups are deleted 2015-11-04 13:52:58 +01:00
Yann
7b0df11496 Removing rel2type fields and rel2type attributes fields from LeClass and LeType fields lists 2015-10-30 14:47:16 +01:00
Yann
3854cdcf82 Bugfix in EmClass : the dict EditorialModel.classtypes.common_fields was modified by Model.load() method 2015-10-29 12:11:14 +01:00
Yann
baeff1f7e6 Implements the EmClass::linked_type() method and add 2 new property method to EmField : em_class and fieldgroup
Associated tests has been added/updated
2015-10-20 17:10:40 +02:00
Yann
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.
2015-10-16 11:14:15 +02:00
Yann
556a3d1f18 Removed a risk of circular import 2015-10-15 16:27:34 +02:00
Yann
ad1beff75d Added default fields for EmClass + fixing some tests and EmClass function that were broken
Added default fields for EmClass, they are listed by classtype in EmClassType
Fixing some tests (testing that a new EmClass has no fieldgroups)
Fixing the delete_check of EmClass. Now an EmClass can be deleted if it contains only default fieldgroup and default fields
2015-10-15 15:07:56 +02:00
Roland Haroutiounian
ccf36dfe8b [EditorialModel - classes] pep8+pylint on classes.py 2015-07-29 09:59:28 +02:00
Yann
ed9133016f Fixing component deletion 2015-07-24 16:50:24 +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
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
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
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
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
Yann
db62afb2a1 Updated EmClass to match the new Model 2015-07-23 14:27:49 +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
ca65d11a5a pep8 sur classes.py 2015-07-17 09:09:24 +02:00
Roland Haroutiounian
6c6fcea755 [EmClass] Modification de l'appel dans le delete (on appelle celui du parent) 2015-07-16 17:28:49 +02:00
Roland Haroutiounian
f3e05e760d [EmClass] Correction sur le nom de la classe dans l'appel vers super.create() 2015-07-16 17:27:40 +02:00
Roland Haroutiounian
f2572808d2 Modification du create dans EmClass pour appeler le create de EmComponent 2015-07-16 17:25:44 +02:00
Roland Haroutiounian
116795af12 Passage en commentaire du code obsolète 2015-07-16 11:43:23 +02:00
Roland Haroutiounian
4f63f1c6d8 Suppression d'imports obsolètes dans EmClass 2015-07-16 10:43:42 +02:00
Roland Haroutiounian
1918b18779 Nettoyage de EmClass
- Suppression des méthodes SQL
2015-07-16 10:41:43 +02:00
Roland Haroutiounian
79c168587e [pep8] Correction sur les lignes vides entre les classes et les méthodes 2015-07-10 09:01:00 +02:00
Yann
9cec5af1fa Merge branch 'component_db_instance_attr'
Conflicts:
	EditorialModel/classes.py
	EditorialModel/types.py
2015-07-09 17:37:43 +02:00
Yann
889abc8547 Put the database configuration asinstance attribute of EmComponent 2015-07-09 17:30:21 +02:00
ArnAud
89d9cb62cf EmClass: delete unused variable 2015-07-09 16:26:15 +02:00
ArnAud
3c13e658a3 EmClass: delete unused import 2015-07-09 16:25:54 +02:00
ArnAud
acce76c48b EmClass: better documentation of linkedtype 2015-07-09 16:23:04 +02:00
Yann
47ce122e93 Changed icon field to EmField_icon in EmClass and EmField. Added sortcolumn argument for EmType and EmClass. 2015-07-03 12:21:59 +02:00
Roland Haroutiounian
76c97bf1f3 [TODO] Suppression du TODO dans classes sur la vérification du class_type dans EmClass
Cette vérification est prise en charge dans EmComponent
2015-07-03 09:51:31 +02:00
Yann
d7d4a989f1 TODO on EmComponent 2015-07-03 09:41:06 +02:00
Yann
27d178e531 Code factorization and create methods for EmComponent and childs changes
Behaviour changed for EmComponent and childs create method :
	- Takes care of duplicated names at creation
	- Handle all the checks in EmComponent method
Factorization of EmField.get_class_table() method
Added a @property method class_table_name to EmClass
2015-07-02 13:38:15 +02:00
Driky
347a302e85 Correction: ajout de la valeur de ranked_in pour chaque classe 'em_*' 2015-07-01 16:29:36 +02:00
Yann
a23fd3dbfc Bugfix on EmClass and EmType so every tests pass
Every tests passes, except the skipped tests on relation_to_type links
There is a strange warning that comes maby from some tests (but maybe not)...
2015-07-01 12:25:52 +02:00
Roland Haroutiounian
744a9fdda2 [EditorialModel/classes.py] Passage au db_engine() 2015-07-01 11:32:49 +02:00
Roland Haroutiounian
501ee8f0ea PEP8 2015-07-01 11:31:04 +02:00
Roland Haroutiounian
6db8376afb Nettoyage du code de EmField 2015-07-01 09:44:12 +02:00
Roland Haroutiounian
9f993c4b42 Résolution d'un conflit 2015-07-01 09:38:27 +02:00
Yann
503ecd570b Some tests dont pass, but most of them does 2015-06-26 17:41:57 +02:00
Roland Haroutiounian
e6783b4580 [#15] Implémentation de la méthode linked_types pour EmClass 2015-06-26 11:54:38 +02:00
Yann
a042306c14 Delete implementation for EmClass and EmField
The EmField version cannot be tested yet (drop column not yet implemented for sqlite in Database.sqlalter)
2015-06-26 11:50:11 +02:00
ArnAud
fcbf952d6d EmClass: pylint and pep8
ignoring:
 - line too long
 - doctring
2015-06-24 13:47:15 +02:00
ArnAud
8844aba318 EmClass: creation on linked types table 2015-06-24 12:24:03 +02:00
ArnAud
958c9a9191 EmClasses: implementation of EmClass.fields() 2015-06-19 14:05:43 +02:00
Yann
00614d90e9 New way to specify _fields and table in EmComponent's child classes
Now _fields and table MUST be class attribute.
Its important to note that _fields now consist in a list of (name, ftype) tuples and that ftype is a EmFieldType class and NOT an EmFieldType instance
2015-06-19 12:29:19 +02:00
ArnAud
007a04ca2a EmClass: test of types(), use uid instead of id 2015-06-19 11:33:51 +02:00
ArnAud
98b1dc455f EmClass: import EditorialModel module. use uid instead of id 2015-06-19 11:33:51 +02:00