ArnAud
caef4dd72f
EM test EmClass: test link_type() and linked_types()
9 years ago
Roland Haroutiounian
7b3c906c51
Merge branch 't11'
9 years ago
Roland Haroutiounian
d9c3f8e86c
[#11 ] Modification de la méthode create => passage en arguments positionnels
9 years ago
Yann Weber
ba40f63a65
Changed the EmType.superiors method to EmType.subordinates
subordinates implementation is note tested
9 years ago
Roland Haroutiounian
62d2a978fb
[#11 ] Finalisation des tests sur Field (debuggage du process de test)
9 years ago
ArnAud
327ae6a1e9
EmClassType : rewrite of the dict representation, better documentation
10 years ago
Roland Haroutiounian
0418bd4895
[#12 ] Modification et débuggage sur le process de création de fields
10 years ago
Roland Haroutiounian
4e8074cfbb
[#12 ] Modification de EmField pour supprimer le populate et le save et debugger le process de création de champ
10 years ago
Roland Haroutiounian
39c9e741cc
[#12 ] Correction sur la casse des fonctions de génération d'une requête Select dans fields_types.py
10 years ago
Roland Haroutiounian
9181acb0b2
[#12 ] Modification sur le nom de la base de test (avant passage à la classe test utils)
10 years ago
Roland Haroutiounian
0c05c66fa6
[#12 ] Correction sur un cast de variable
10 years ago
Roland Haroutiounian
e9d49533f2
[#12 ] Correctifs sur le populate et le save de EmField
10 years ago
Roland Haroutiounian
0751eb26e8
[#12 ] Modification du setup de test pour test_field
10 years ago
Roland Haroutiounian
b69b21b431
[#12 ] debug
10 years ago
Roland Haroutiounian
1f62ec01e4
[#12 ] Ajout des fonctions de création et de suppression d'entrées dans em_field_type
10 years ago
Yann Weber
ea383eb6b7
Now EmFieldGroup.fields(), EmType.fields() and EmType.field_groups() return instance and not uid
10 years ago
Yann Weber
5e04b34a92
Implemented EmFieldGroup.fields()
Not tested because of bugs in EmField
10 years ago
Yann Weber
5dbe064b95
EmType.fields() implementation
Changed comments about EmFieldGroup.fields()
10 years ago
Yann Weber
c46d94dc1c
EmType.field_groups function implementation
10 years ago
Yann Weber
b45e7ea4ee
Added an getTable function to sqlutils
It takes an EmComponent child class as parameter and return an sqlalchemy Table
10 years ago
Yann Weber
b951a0328f
Normalized EmType comments
10 years ago
Driky
91ea809d5b
Correction de Component.modify_rank()
Passe tous les tests
10 years ago
Driky
39c63f8ee3
Correction des cas sign = + ou - sur modify rank et creation de get_max_rank()
10 years ago
ArnAud
22dad9b673
EmType: __init__(), save() and populate() new gen
10 years ago
Yann Weber
302382d488
Created EditorialModel tests database utilities
10 years ago
ArnAud
958c9a9191
EmClasses: implementation of EmClass.fields()
10 years ago
ArnAud
c8d8c34710
EM: test classes : test for EmClass.fields()
10 years ago
Roland Haroutiounian
9140b1b5b1
Merge branch 't12'
10 years ago
Roland Haroutiounian
b0a9a2fa3b
[#12 ] Modification de l'appel au getDbe
Récupération dans EmComponent directement
10 years ago
Roland Haroutiounian
8e7a7ffe34
[#12 ] Modification de la classe EmField
Suppression du init et passage des classes plutôt que les instances pour les fieldtypes dans le _fields
10 years ago
Roland Haroutiounian
e1d7a88335
[#12 ] Modification de la déclaration des champs de la classe Em_Field_Type
10 years ago
Roland Haroutiounian
2a9335f202
[#12 ] Déplacement des méthodes select_field et unselect_field de fields vers types
10 years ago
Roland Haroutiounian
77fc59fd40
[#12 ] Suppression de deux imports inutiles dans le module fields_types
10 years ago
Roland Haroutiounian
816f33ece3
[#12 ] Ajout du module fields_types
10 years ago
Roland Haroutiounian
f13b6f844d
[#12 ] Ajout de la class Em_Field_Type et du select_field
10 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
10 years ago
ArnAud
007a04ca2a
EmClass: test of types(), use uid instead of id
10 years ago
ArnAud
98b1dc455f
EmClass: import EditorialModel module. use uid instead of id
10 years ago
Roland Haroutiounian
e6f6720a57
[#11 ] Ajout des premiers tests sur EmField
10 years ago
Roland Haroutiounian
c017ae793e
[#11 ] Implémentation du _fields dans EmField
10 years ago
Roland Haroutiounian
99ca81cdc3
[#11 ] Correction sur le champ identifiant des fieldgroup dans la définition d'un field
10 years ago
Roland Haroutiounian
4b32798c49
[#11 ] Nettoyage de code
10 years ago
Roland Haroutiounian
ef00ce2250
[#11 ] Correction pour l'argument du From
10 years ago
Roland Haroutiounian
6442a85014
[#11 ] Modification du passage d'arguments sur la méthode create de components
10 years ago
Roland Haroutiounian
21f79a9301
[#11 ] Ajout de la génération de la colonne du Field dans la table correspondante
10 years ago
Yann Weber
5340fde711
Added tests for EmComponent's delete() function
10 years ago
ArnAud
c3e18b1aa9
EM test classes: test of EmClass.fielgroups()
10 years ago
Yann Weber
6c8b10955d
Cleaning and optimizing tests
Cleaning code for EmComponent
Optimizing tests for EmComponent and EmFieldGroup (running initDb in setUpModule and make a backup copy, the backup is restored in setUp)
10 years ago
Yann Weber
80e82073fc
Bugfixes on EmComponent
- Now except for the modify_rank tests test_component didn't fails
- Added simple integer operation capabilities to EmFieldType_integer ( int cast, +=, -=, *=, /=, +, -, *, /, %, ...)
10 years ago
ArnAud
b587f38e32
EM, test: test creation of EmClass
10 years ago