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