Roland Haroutiounian
4e8074cfbb
[ #12 ] Modification de EmField pour supprimer le populate et le save et debugger le process de création de champ
2015-06-19 17:09:18 +02:00
Roland Haroutiounian
39c9e741cc
[ #12 ] Correction sur la casse des fonctions de génération d'une requête Select dans fields_types.py
2015-06-19 17:09:18 +02:00
Roland Haroutiounian
9181acb0b2
[ #12 ] Modification sur le nom de la base de test (avant passage à la classe test utils)
2015-06-19 17:09:18 +02:00
Roland Haroutiounian
0c05c66fa6
[ #12 ] Correction sur un cast de variable
2015-06-19 17:09:18 +02:00
Roland Haroutiounian
e9d49533f2
[ #12 ] Correctifs sur le populate et le save de EmField
2015-06-19 17:09:18 +02:00
Roland Haroutiounian
0751eb26e8
[ #12 ] Modification du setup de test pour test_field
2015-06-19 17:09:18 +02:00
Roland Haroutiounian
b69b21b431
[ #12 ] debug
2015-06-19 17:09:18 +02:00
Roland Haroutiounian
1f62ec01e4
[ #12 ] Ajout des fonctions de création et de suppression d'entrées dans em_field_type
2015-06-19 17:09:17 +02:00
Yann
ea383eb6b7
Now EmFieldGroup.fields(), EmType.fields() and EmType.field_groups() return instance and not uid
2015-06-19 16:25:29 +02:00
Yann
5e04b34a92
Implemented EmFieldGroup.fields()
...
Not tested because of bugs in EmField
2015-06-19 16:21:07 +02:00
Yann
5dbe064b95
EmType.fields() implementation
...
Changed comments about EmFieldGroup.fields()
2015-06-19 16:16:03 +02:00
Yann
c46d94dc1c
EmType.field_groups function implementation
2015-06-19 16:13:20 +02:00
Yann
b45e7ea4ee
Added an getTable function to sqlutils
...
It takes an EmComponent child class as parameter and return an sqlalchemy Table
2015-06-19 16:12:40 +02:00
Yann
b951a0328f
Normalized EmType comments
2015-06-19 15:05:37 +02:00
Driky
91ea809d5b
Correction de Component.modify_rank()
...
Passe tous les tests
2015-06-19 14:54:25 +02:00
Driky
39c63f8ee3
Correction des cas sign = + ou - sur modify rank et creation de get_max_rank()
2015-06-19 14:54:25 +02:00
ArnAud
22dad9b673
EmType: __init__(), save() and populate() new gen
2015-06-19 14:49:03 +02:00
Yann
302382d488
Created EditorialModel tests database utilities
2015-06-19 14:27:40 +02:00
ArnAud
958c9a9191
EmClasses: implementation of EmClass.fields()
2015-06-19 14:05:43 +02:00
ArnAud
c8d8c34710
EM: test classes : test for EmClass.fields()
2015-06-19 14:05:43 +02:00
Roland Haroutiounian
9140b1b5b1
Merge branch 't12'
2015-06-19 13:38:53 +02:00
Roland Haroutiounian
b0a9a2fa3b
[ #12 ] Modification de l'appel au getDbe
...
Récupération dans EmComponent directement
2015-06-19 13:38:15 +02:00
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
2015-06-19 13:35:50 +02:00
Roland Haroutiounian
e1d7a88335
[ #12 ] Modification de la déclaration des champs de la classe Em_Field_Type
2015-06-19 13:35:49 +02:00
Roland Haroutiounian
2a9335f202
[ #12 ] Déplacement des méthodes select_field et unselect_field de fields vers types
2015-06-19 13:35:49 +02:00
Roland Haroutiounian
77fc59fd40
[ #12 ] Suppression de deux imports inutiles dans le module fields_types
2015-06-19 13:35:49 +02:00
Roland Haroutiounian
816f33ece3
[ #12 ] Ajout du module fields_types
2015-06-19 13:35:49 +02:00
Roland Haroutiounian
f13b6f844d
[ #12 ] Ajout de la class Em_Field_Type et du select_field
2015-06-19 13:35:49 +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
Roland Haroutiounian
e6f6720a57
[ #11 ] Ajout des premiers tests sur EmField
2015-06-19 10:31:58 +02:00
Roland Haroutiounian
c017ae793e
[ #11 ] Implémentation du _fields dans EmField
2015-06-19 10:31:58 +02:00
Roland Haroutiounian
99ca81cdc3
[ #11 ] Correction sur le champ identifiant des fieldgroup dans la définition d'un field
2015-06-19 10:31:58 +02:00
Roland Haroutiounian
4b32798c49
[ #11 ] Nettoyage de code
2015-06-19 10:31:58 +02:00
Roland Haroutiounian
ef00ce2250
[ #11 ] Correction pour l'argument du From
2015-06-19 10:31:58 +02:00
Roland Haroutiounian
6442a85014
[ #11 ] Modification du passage d'arguments sur la méthode create de components
2015-06-19 10:31:58 +02:00
Roland Haroutiounian
21f79a9301
[ #11 ] Ajout de la génération de la colonne du Field dans la table correspondante
2015-06-19 10:31:58 +02:00
Yann
5340fde711
Added tests for EmComponent's delete() function
2015-06-19 10:07:17 +02:00
ArnAud
c3e18b1aa9
EM test classes: test of EmClass.fielgroups()
2015-06-19 09:25:07 +02:00
Yann
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)
2015-06-18 17:02:58 +02:00
Yann
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, +=, -=, *=, /=, +, -, *, /, %, ...)
2015-06-18 16:10:55 +02:00
ArnAud
b587f38e32
EM, test: test creation of EmClass
2015-06-18 15:55:12 +02:00
Yann
690b68d714
Small bugfix in components.py
2015-06-18 14:41:21 +02:00
Yann
c74f65ac55
Normalize comments for MlString
2015-06-18 14:36:32 +02:00
Yann
e8a2362d21
Normalize comments for EmFieldGroups
2015-06-18 14:28:32 +02:00
Yann
ff72825720
Normalize comments for components.py
2015-06-18 14:18:55 +02:00
Yann
94e8474185
Bugfixes is some tests
2015-06-18 13:47:58 +02:00
Yann
25e5858ba2
Syntax error fixes
2015-06-18 13:47:58 +02:00
Yann
69f948affd
Added test for create, init and fields
...
Maybe very bugy
2015-06-18 13:47:58 +02:00