Roland Haroutiounian
5d43d897e1
PEP8 / PyLint on classes.py
il y a 9 ans
Yann Weber
f886bb5193
Delete relationnal Field from the generated LeType child class
il y a 9 ans
Yann Weber
10379c6a95
Fieldgroups are deleted
il y a 9 ans
Yann Weber
7b0df11496
Removing rel2type fields and rel2type attributes fields from LeClass and LeType fields lists
il y a 9 ans
Yann Weber
3854cdcf82
Bugfix in EmClass : the dict EditorialModel.classtypes.common_fields was modified by Model.load() method
il y a 9 ans
Yann Weber
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
il y a 9 ans
Yann Weber
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.
il y a 9 ans
Yann Weber
556a3d1f18
Removed a risk of circular import
il y a 9 ans
Yann Weber
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
il y a 9 ans
Roland Haroutiounian
ccf36dfe8b
[EditorialModel - classes] pep8+pylint on classes.py
il y a 9 ans
Yann Weber
ed9133016f
Fixing component deletion
il y a 9 ans
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
il y a 9 ans
Yann Weber
99ee79b894
Removed the class attribute _fields from EmClass
il y a 9 ans
Roland Haroutiounian
30bbd91f2c
[EmClass] pep8+pylint
il y a 9 ans
Yann Weber
405dd318dd
Added type check in EmComponent and childs class type check. Added some cast functions to Backend
il y a 9 ans
Yann Weber
b6ef37752f
Supressed _fields from EmComponent and transforming the EmComponent in a standart object with standarts attributes
il y a 9 ans
Roland Haroutiounian
77f91bc68b
[#44 ] EmClass: added the call to the check method in the delete process
il y a 9 ans
Yann Weber
a2529cf8eb
Added a check method to EmComponent and EmClass
EmComponent::check() always return True but rearrange ranks if they are not continuous
il y a 9 ans
Yann Weber
db62afb2a1
Updated EmClass to match the new Model
il y a 9 ans
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
il y a 9 ans
Roland Haroutiounian
ca65d11a5a
pep8 sur classes.py
il y a 9 ans
Roland Haroutiounian
6c6fcea755
[EmClass] Modification de l'appel dans le delete (on appelle celui du parent)
il y a 9 ans
Roland Haroutiounian
f3e05e760d
[EmClass] Correction sur le nom de la classe dans l'appel vers super.create()
il y a 9 ans
Roland Haroutiounian
f2572808d2
Modification du create dans EmClass pour appeler le create de EmComponent
il y a 9 ans
Roland Haroutiounian
116795af12
Passage en commentaire du code obsolète
il y a 9 ans
Roland Haroutiounian
4f63f1c6d8
Suppression d'imports obsolètes dans EmClass
il y a 9 ans
Roland Haroutiounian
1918b18779
Nettoyage de EmClass
- Suppression des méthodes SQL
il y a 9 ans
Roland Haroutiounian
79c168587e
[pep8] Correction sur les lignes vides entre les classes et les méthodes
il y a 9 ans
Yann Weber
889abc8547
Put the database configuration asinstance attribute of EmComponent
il y a 9 ans
ArnAud
89d9cb62cf
EmClass: delete unused variable
il y a 9 ans
ArnAud
3c13e658a3
EmClass: delete unused import
il y a 9 ans
ArnAud
acce76c48b
EmClass: better documentation of linkedtype
il y a 9 ans
Yann Weber
47ce122e93
Changed icon field to EmField_icon in EmClass and EmField. Added sortcolumn argument for EmType and EmClass.
il y a 9 ans
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
il y a 9 ans
Yann Weber
d7d4a989f1
TODO on EmComponent
il y a 9 ans
Yann Weber
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
il y a 9 ans
Driky
347a302e85
Correction: ajout de la valeur de ranked_in pour chaque classe 'em_*'
il y a 9 ans
Yann Weber
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)...
il y a 9 ans
Roland Haroutiounian
744a9fdda2
[EditorialModel/classes.py] Passage au db_engine()
il y a 9 ans
Roland Haroutiounian
501ee8f0ea
PEP8
il y a 9 ans
Roland Haroutiounian
6db8376afb
Nettoyage du code de EmField
il y a 9 ans
Roland Haroutiounian
9f993c4b42
Résolution d'un conflit
il y a 9 ans
Yann Weber
503ecd570b
Some tests dont pass, but most of them does
il y a 9 ans
Roland Haroutiounian
e6783b4580
[#15 ] Implémentation de la méthode linked_types pour EmClass
il y a 9 ans
Yann Weber
a042306c14
Delete implementation for EmClass and EmField
The EmField version cannot be tested yet (drop column not yet implemented for sqlite in Database.sqlalter)
il y a 9 ans
ArnAud
fcbf952d6d
EmClass: pylint and pep8
ignoring:
- line too long
- doctring
il y a 9 ans
ArnAud
8844aba318
EmClass: creation on linked types table
il y a 9 ans
ArnAud
958c9a9191
EmClasses: implementation of EmClass.fields()
il y a 9 ans
Yann Weber
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
il y a 9 ans
ArnAud
007a04ca2a
EmClass: test of types(), use uid instead of id
il y a 9 ans