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